2 * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.bgp.mode.impl;
10 import org.opendaylight.protocol.bgp.rib.spi.Peer;
11 import org.opendaylight.protocol.bgp.rib.spi.policy.BGPRouteEntryExportParameters;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.PeerId;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.PeerRole;
15 public final class BGPRouteEntryExportParametersImpl implements BGPRouteEntryExportParameters {
16 private final Peer fromPeer;
17 private final Peer toPeer;
19 public BGPRouteEntryExportParametersImpl(final Peer fromPeer, final Peer toPeer) {
20 this.fromPeer = fromPeer;
25 public PeerRole getFromPeerRole() {
26 return this.fromPeer.getRole();
30 public PeerId getFromPeerId() {
31 return this.fromPeer.getPeerId();
35 public PeerRole getToPeerRole() {
36 return this.toPeer.getRole();
40 public PeerId getToPeerId() {
41 return this.toPeer.getPeerId();