e0af532dc0c16f643adeea39150c7924df2ecaf5
[bgpcep.git] / bgp / rib-spi / src / main / java / org / opendaylight / protocol / bgp / rib / spi / policy / BGPRouteEntryImportParameters.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.spi.policy;
9
10 import javax.annotation.Nonnull;
11 import org.opendaylight.protocol.bgp.rib.spi.entry.RouteEntryKey;
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
15 /**
16  * Contains Peer destiny information for import route entry.
17  */
18 public interface BGPRouteEntryImportParameters extends RouteEntryKey {
19     /**
20      * Peer id of Peer route entry announcer.
21      *
22      * @return peer Id of announcer Peer
23      */
24     @Nonnull
25     PeerId getFromPeerId();
26
27     /**
28      * Peer role of Peer route entry announcer.
29      *
30      * @return role of the peer which originated the routes
31      */
32     @Nonnull
33     PeerRole getFromPeerRole();
34 }