public class BGPPeer extends BGPPeerStateImpl implements BGPSessionListener, Peer, BGPPeerRuntimeMXBean, org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener
Constructor and Description |
---|
BGPPeer(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress neighborAddress,
RIB rib,
PeerRole role,
org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcRegistry,
Set<TablesKey> afiSafisAdvertized,
Set<TablesKey> afiSafisGracefulAdvertized) |
BGPPeer(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress neighborAddress,
RIB rib,
PeerRole role,
SimpleRoutingPolicy peerStatus,
org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcRegistry,
Set<TablesKey> afiSafisAdvertized,
Set<TablesKey> afiSafisGracefulAdvertized) |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) |
com.google.common.util.concurrent.ListenableFuture<Void> |
close()
Close Peers and performs asynchronously DS clean up
|
BGPAfiSafiState |
getBGPAfiSafiState()
Afi Safi Operational State
|
BGPErrorHandlingState |
getBGPErrorHandlingState()
Error Handling State
|
BgpPeerState |
getBgpPeerState() |
BgpSessionState |
getBgpSessionState() |
BGPSessionState |
getBGPSessionState()
BGP Session Operational State
|
BGPTimersState |
getBGPTimersState()
BGP Operation Timers State
|
BGPTransportState |
getBGPTransportState()
BGP Operational Transport State
|
String |
getName()
Return peer's symbolic name.
|
byte[] |
getRawIdentifier()
Return the peer's BGP identifier as raw bytearray
|
void |
instantiateServiceInstance() |
void |
markUptodate(TablesKey tablesKey)
Marks synchronization finished for given Table key
|
void |
onMessage(BGPSession session,
org.opendaylight.yangtools.yang.binding.Notification msg)
Fired when a normal protocol message is received.
|
void |
onSessionDown(BGPSession session,
Exception e)
Fired when the session went down because of an IO error.
|
void |
onSessionTerminated(BGPSession session,
BGPTerminationReason cause)
Fired when the session is terminated locally.
|
void |
onSessionUp(BGPSession session)
Fired when the session was established successfully.
|
void |
onTransactionChainFailed(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain,
org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction<?,?> transaction,
Throwable cause) |
void |
onTransactionChainSuccessful(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain) |
com.google.common.util.concurrent.ListenableFuture<Void> |
releaseConnection() |
void |
resetSession() |
void |
resetStats() |
String |
toString() |
getAfiSafisAdvertized, getAfiSafisReceived, getBGPGracelfulRestart, getBGPPeerMessagesState, getErroneousUpdateReceivedCount, getGroupId, getNeighborAddress, getNotificationMessagesReceivedCount, getNotificationMessagesSentCount, getPeerRestartTime, getPeerState, getPrefixesInstalledCount, getPrefixesReceivedCount, getPrefixesSentCount, getTotalPrefixes, getUpdateMessagesReceivedCount, getUpdateMessagesSentCount, isAfiSafiSupported, isGracefulRestartAdvertized, isGracefulRestartReceived, isLocalRestarting, isPeerRestarting, messageReceived, messageSent, registerPrefixesCounters, registerPrefixesSentCounter, resetState, setAdvertizedGracefulRestartTableTypes, setAfiSafiGracefulRestartState
getInstanceIdentifier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTotalPathsCount
getInstanceIdentifier
public BGPPeer(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress neighborAddress, RIB rib, PeerRole role, SimpleRoutingPolicy peerStatus, org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcRegistry, @Nonnull Set<TablesKey> afiSafisAdvertized, @Nonnull Set<TablesKey> afiSafisGracefulAdvertized)
public BGPPeer(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress neighborAddress, RIB rib, PeerRole role, org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcRegistry, @Nonnull Set<TablesKey> afiSafisAdvertized, @Nonnull Set<TablesKey> afiSafisGracefulAdvertized)
public void instantiateServiceInstance()
public com.google.common.util.concurrent.ListenableFuture<Void> close()
Peer
public void onMessage(BGPSession session, org.opendaylight.yangtools.yang.binding.Notification msg) throws BGPDocumentedException
BGPSessionListener
onMessage
in interface BGPSessionListener
msg
- Protocol messageBGPDocumentedException
public void onSessionUp(BGPSession session)
BGPSessionListener
onSessionUp
in interface BGPSessionListener
session
- Peer address families which we acceptedpublic void onSessionDown(BGPSession session, Exception e)
BGPSessionListener
onSessionDown
in interface BGPSessionListener
session
- that went downe
- Exception that was thrown as the cause of session being downpublic void onSessionTerminated(BGPSession session, BGPTerminationReason cause)
BGPSessionListener
onSessionTerminated
in interface BGPSessionListener
cause
- the cause why the session went downprotected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
public String getName()
Peer
public com.google.common.util.concurrent.ListenableFuture<Void> releaseConnection()
releaseConnection
in interface BGPSessionListener
public byte[] getRawIdentifier()
Peer
getRawIdentifier
in interface Peer
public void resetSession()
resetSession
in interface BGPPeerRuntimeMXBean
public void resetStats()
resetStats
in interface BGPPeerRuntimeMXBean
public BgpSessionState getBgpSessionState()
getBgpSessionState
in interface BGPPeerRuntimeMXBean
public BgpPeerState getBgpPeerState()
getBgpPeerState
in interface BGPPeerRuntimeMXBean
public void onTransactionChainFailed(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain, org.opendaylight.controller.md.sal.common.api.data.AsyncTransaction<?,?> transaction, Throwable cause)
onTransactionChainFailed
in interface org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener
public void onTransactionChainSuccessful(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain)
onTransactionChainSuccessful
in interface org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener
public void markUptodate(TablesKey tablesKey)
BGPSessionListener
markUptodate
in interface BGPSessionListener
tablesKey
- of the table where synchronization finishedpublic BGPErrorHandlingState getBGPErrorHandlingState()
BGPPeerState
getBGPErrorHandlingState
in interface BGPPeerState
public BGPAfiSafiState getBGPAfiSafiState()
BGPPeerState
getBGPAfiSafiState
in interface BGPPeerState
public BGPSessionState getBGPSessionState()
BGPPeerState
getBGPSessionState
in interface BGPPeerState
public BGPTimersState getBGPTimersState()
BGPPeerState
getBGPTimersState
in interface BGPPeerState
public BGPTransportState getBGPTransportState()
BGPPeerState
getBGPTransportState
in interface BGPPeerState
Copyright © 2018 OpenDaylight. All rights reserved.