0ef61a91ff855c592230d3a810725cea4cd36de3
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / BGPRouteEntryImportParametersImpl.java
1 /*
2  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.protocol.bgp.rib.impl;
9
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;
14
15 public class BGPRouteEntryImportParametersImpl implements BGPRouteEntryImportParameters {
16     private final PeerId peerId;
17     private final NodeIdentifierWithPredicates routeId;
18     private final PeerRole fromPeerRole;
19
20     public BGPRouteEntryImportParametersImpl(
21             final NodeIdentifierWithPredicates routeId,
22             final PeerId peerId,
23             final PeerRole fromPeerRole) {
24         this.routeId = routeId;
25         this.peerId = peerId;
26         this.fromPeerRole = fromPeerRole;
27     }
28
29     @Override
30     public NodeIdentifierWithPredicates getRouteId() {
31         return this.routeId;
32     }
33
34     @Override
35     public PeerId getFromPeerId() {
36         return this.peerId;
37     }
38
39     @Override
40     public PeerRole getFromPeerRole() {
41         return this.fromPeerRole;
42     }
43
44 }