public class BGPPeer extends BGPPeerStateImpl implements BGPSessionListener, Peer, 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,
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.
|
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 byte array.
|
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()
Release Peer session.
|
String |
toString() |
getAfiSafisAdvertized, getAfiSafisReceived, getBGPGracelfulRestart, getBGPPeerMessagesState, getErroneousUpdateReceivedCount, getGroupId, getNeighborAddress, getNotificationMessagesReceivedCount, getNotificationMessagesSentCount, getPeerRestartTime, getPeerState, getPrefixesInstalledCount, getPrefixesReceivedCount, getPrefixesSentCount, getTotalPrefixes, getUpdateMessagesReceivedCount, getUpdateMessagesSentCount, isActive, isAfiSafiSupported, isGracefulRestartAdvertized, isGracefulRestartReceived, isLocalRestarting, isPeerRestarting, messageReceived, messageSent, registerPrefixesCounters, registerPrefixesSentCounter, resetState, setActive, setAdvertizedGracefulRestartTableTypes, setAfiSafiGracefulRestartStategetInstanceIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTotalPathsCountgetInstanceIdentifierpublic 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 void instantiateServiceInstance()
public com.google.common.util.concurrent.ListenableFuture<Void> close()
Peerpublic void onMessage(BGPSession session, org.opendaylight.yangtools.yang.binding.Notification msg) throws BGPDocumentedException
BGPSessionListeneronMessage in interface BGPSessionListenermsg - Protocol messageBGPDocumentedExceptionpublic void onSessionUp(BGPSession session)
BGPSessionListeneronSessionUp in interface BGPSessionListenersession - Peer address families which we acceptedpublic void onSessionDown(BGPSession session, Exception e)
BGPSessionListeneronSessionDown in interface BGPSessionListenersession - that went downe - Exception that was thrown as the cause of session being downpublic void onSessionTerminated(BGPSession session, BGPTerminationReason cause)
BGPSessionListeneronSessionTerminated in interface BGPSessionListenercause - the cause why the session went downprotected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
public String getName()
Peerpublic com.google.common.util.concurrent.ListenableFuture<Void> releaseConnection()
PeerRPCsreleaseConnection in interface PeerRPCspublic byte[] getRawIdentifier()
PeergetRawIdentifier in interface Peerpublic 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.TransactionChainListenerpublic void onTransactionChainSuccessful(org.opendaylight.controller.md.sal.common.api.data.TransactionChain<?,?> chain)
onTransactionChainSuccessful in interface org.opendaylight.controller.md.sal.common.api.data.TransactionChainListenerpublic void markUptodate(TablesKey tablesKey)
BGPSessionListenermarkUptodate in interface BGPSessionListenertablesKey - of the table where synchronization finishedpublic BGPErrorHandlingState getBGPErrorHandlingState()
BGPPeerStategetBGPErrorHandlingState in interface BGPPeerStatepublic BGPAfiSafiState getBGPAfiSafiState()
BGPPeerStategetBGPAfiSafiState in interface BGPPeerStatepublic BGPSessionState getBGPSessionState()
BGPPeerStategetBGPSessionState in interface BGPPeerStatepublic BGPTimersState getBGPTimersState()
BGPPeerStategetBGPTimersState in interface BGPPeerStatepublic BGPTransportState getBGPTransportState()
BGPPeerStategetBGPTransportState in interface BGPPeerStateCopyright © 2019 OpenDaylight. All rights reserved.