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.spi.policy;
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;
16 * Contains Peer destiny information for import route entry.
18 public interface BGPRouteEntryImportParameters extends RouteEntryKey {
20 * Peer id of Peer route entry announcer.
22 * @return peer Id of announcer Peer
25 PeerId getFromPeerId();
28 * Peer role of Peer route entry announcer.
30 * @return role of the peer which originated the routes
33 PeerRole getFromPeerRole();