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.rib.impl;
10 import org.opendaylight.protocol.bgp.rib.spi.policy.BGPRouteEntryImportParameters;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.PeerId;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.PeerRole;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
15 public class BGPRouteEntryImportParametersImpl implements BGPRouteEntryImportParameters {
16 private final PeerId peerId;
17 private final NodeIdentifierWithPredicates routeId;
18 private final PeerRole fromPeerRole;
20 public BGPRouteEntryImportParametersImpl(
21 final NodeIdentifierWithPredicates routeId,
23 final PeerRole fromPeerRole) {
24 this.routeId = routeId;
26 this.fromPeerRole = fromPeerRole;
30 public NodeIdentifierWithPredicates getRouteId() {
35 public PeerId getFromPeerId() {
40 public PeerRole getFromPeerRole() {
41 return this.fromPeerRole;