Class BgpPeer
- java.lang.Object
-
- org.opendaylight.protocol.bgp.rib.impl.config.BgpPeer
-
- All Implemented Interfaces:
AutoCloseable
,PeerBean
,BGPPeerStateConsumer
public class BgpPeer extends Object implements PeerBean, BGPPeerStateConsumer
-
-
Constructor Summary
Constructors Constructor Description BgpPeer(org.opendaylight.mdsal.binding.api.RpcProviderService rpcRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo>
closeServiceInstance()
Boolean
containsEqualConfiguration(Neighbor neighbor)
List<OptionalCapabilities>
getBgpFixedCapabilities()
Optional<RevisedErrorHandlingSupport>
getErrorHandling()
int
getGracefulRestartTimer()
BGPPeerState
getPeerState()
Returns Peer Operational State.void
instantiateServiceInstance()
void
restart(RIB rib, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Bgp> bgpIid, PeerGroupConfigLoader peerGroupLoader, BGPTableTypeRegistryConsumer tableTypeRegistry)
void
start(RIB rib, Neighbor neighbor, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Bgp> bgpIid, PeerGroupConfigLoader peerGroupLoader, BGPTableTypeRegistryConsumer tableTypeRegistry)
-
-
-
Method Detail
-
start
public void start(RIB rib, Neighbor neighbor, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Bgp> bgpIid, PeerGroupConfigLoader peerGroupLoader, BGPTableTypeRegistryConsumer tableTypeRegistry)
-
restart
public void restart(RIB rib, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Bgp> bgpIid, PeerGroupConfigLoader peerGroupLoader, BGPTableTypeRegistryConsumer tableTypeRegistry)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacePeerBean
-
instantiateServiceInstance
public void instantiateServiceInstance()
- Specified by:
instantiateServiceInstance
in interfacePeerBean
-
closeServiceInstance
public com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> closeServiceInstance()
- Specified by:
closeServiceInstance
in interfacePeerBean
-
containsEqualConfiguration
public Boolean containsEqualConfiguration(Neighbor neighbor)
- Specified by:
containsEqualConfiguration
in interfacePeerBean
-
getPeerState
public BGPPeerState getPeerState()
Description copied from interface:BGPPeerStateConsumer
Returns Peer Operational State.- Specified by:
getPeerState
in interfaceBGPPeerStateConsumer
- Returns:
- BGP Peer State
-
getBgpFixedCapabilities
public List<OptionalCapabilities> getBgpFixedCapabilities()
-
getGracefulRestartTimer
public int getGracefulRestartTimer()
-
getErrorHandling
public Optional<RevisedErrorHandlingSupport> getErrorHandling()
-
-