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;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.ClusterIdentifier;
16 public final class BGPRouteEntryExportParametersImpl implements BGPRouteEntryExportParameters {
17 private final Peer fromPeer;
18 private final Peer toPeer;
20 public BGPRouteEntryExportParametersImpl(final Peer fromPeer, final Peer toPeer) {
21 this.fromPeer = fromPeer;
26 public PeerRole getFromPeerRole() {
27 return this.fromPeer.getRole();
31 public PeerId getFromPeerId() {
32 return this.fromPeer.getPeerId();
36 public ClusterIdentifier getFromClusterId() {
37 return this.fromPeer.getClusterId();
41 public PeerRole getToPeerRole() {
42 return this.toPeer.getRole();
46 public PeerId getToPeerId() {
47 return this.toPeer.getPeerId();