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 javax.annotation.Nullable;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.PeerId;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.PeerRole;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.ClusterIdentifier;
18 * Contains Peer destiny information for import route entry.
20 public interface BGPRouteEntryImportParameters {
22 * Peer id of Peer route entry announcer.
24 * @return peer Role of announcer Peer
27 PeerRole getFromPeerRole();
30 * Peer id of Peer route entry announcer.
32 * @return peer Id of announcer Peer
35 PeerId getFromPeerId();
38 * Peer id of Peer route entry announcer.
40 * @return peer Id of announcer Peer
43 ClusterIdentifier getFromClusterId();
46 * Peer local AS of route entry announcer.
48 * @return peer Local AS
51 AsNumber getFromPeerLocalAs();