public abstract class BGPPeerStateImpl extends DefaultRibReference implements BGPPeerState, BGPAfiSafiState, BGPGracelfulRestartState, BGPErrorHandlingState, BGPPeerMessagesState, BGPPeerStateConsumer, BGPMessagesListener
| Constructor and Description |
|---|
BGPPeerStateImpl(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Rib,RibKey> instanceIdentifier,
String groupId,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress neighborAddress,
Set<TablesKey> afiSafisAdvertized,
Set<TablesKey> afiSafisGracefulAdvertized) |
| Modifier and Type | Method and Description |
|---|---|
Set<TablesKey> |
getAfiSafisAdvertized()
List of TablesKey - Afi Safi Advertized to the neighbor.
|
Set<TablesKey> |
getAfiSafisReceived()
List of TablesKey - Afi Safi Advertized by neighbor.
|
BGPGracelfulRestartState |
getBGPGracelfulRestart()
BGP Operational GracelfulRestart State.
|
BGPPeerMessagesState |
getBGPPeerMessagesState()
BGP Message Operational State.
|
long |
getErroneousUpdateReceivedCount()
Erroneous Update Received count.
|
String |
getGroupId()
PeerGroup Id.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getNeighborAddress()
Return Neighbor Key/Address.
|
long |
getNotificationMessagesReceivedCount()
Notification Update Messages Received count.
|
long |
getNotificationMessagesSentCount()
Notification Messages Sent count.
|
int |
getPeerRestartTime()
The period of time (advertised by the peer) that the peer expects a restart of a
BGP session to take.
|
BGPPeerState |
getPeerState()
Returns Peer Operational State.
|
long |
getPrefixesInstalledCount(TablesKey tablesKey)
Prefixes installed per specific tablekey.
|
long |
getPrefixesReceivedCount(TablesKey tablesKey)
Prefixed received from the peer count.
|
long |
getPrefixesSentCount(TablesKey tablesKey)
Prefixed sent to the Peer count.
|
long |
getTotalPrefixes()
Prefixes installed under Effective-Rib-In for a BGP neighbor.
|
long |
getUpdateMessagesReceivedCount()
Update Messages Received count.
|
long |
getUpdateMessagesSentCount()
Update Messages Sent count.
|
boolean |
isActive()
Indicates whether this instance is being actively managed and updated.
|
boolean |
isAfiSafiSupported(TablesKey tablesKey)
is AfiSafi Supported.
|
boolean |
isGracefulRestartAdvertized(TablesKey tablesKey)
is Graceful Restart Supported advertized to neighbor.
|
boolean |
isGracefulRestartReceived(TablesKey tablesKey)
is Graceful Restart Supported advertized by neighbor.
|
boolean |
isLocalRestarting()
This flag indicates whether the local neighbor is currently restarting.
|
boolean |
isPeerRestarting()
This flag indicates whether the remote neighbor is currently in the process of
restarting, and hence received routes are currently stale.
|
void |
messageReceived(org.opendaylight.yangtools.yang.binding.Notification msg)
Fired when message is received.
|
void |
messageSent(org.opendaylight.yangtools.yang.binding.Notification msg)
Fired when message is sent.
|
protected void |
registerPrefixesCounters(PrefixesReceivedCounters prefixesReceived,
PrefixesInstalledCounters prefixesInstalled) |
protected void |
registerPrefixesSentCounter(TablesKey tablesKey,
PrefixesSentCounters prefixesSentCounter) |
protected void |
resetState() |
protected void |
setActive(boolean active) |
protected void |
setAdvertizedGracefulRestartTableTypes(List<TablesKey> receivedGraceful) |
void |
setAfiSafiGracefulRestartState(int peerRestartTime,
boolean peerRestarting,
boolean localRestarting) |
getInstanceIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBGPAfiSafiState, getBGPErrorHandlingState, getBGPSessionState, getBGPTimersState, getBGPTransportState, getTotalPathsCountgetInstanceIdentifierpublic BGPPeerStateImpl(@Nonnull org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Rib,RibKey> instanceIdentifier, @Nullable String groupId, @Nonnull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress neighborAddress, @Nonnull Set<TablesKey> afiSafisAdvertized, @Nonnull Set<TablesKey> afiSafisGracefulAdvertized)
public final String getGroupId()
BGPPeerStategetGroupId in interface BGPPeerStatepublic final org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getNeighborAddress()
BGPPeerStategetNeighborAddress in interface BGPPeerStatepublic final long getTotalPrefixes()
BGPPeerStategetTotalPrefixes in interface BGPPeerStatepublic final BGPPeerMessagesState getBGPPeerMessagesState()
BGPPeerStategetBGPPeerMessagesState in interface BGPPeerStatepublic final BGPGracelfulRestartState getBGPGracelfulRestart()
BGPPeerStategetBGPGracelfulRestart in interface BGPPeerStatepublic final boolean isAfiSafiSupported(TablesKey tablesKey)
BGPAfiSafiStateisAfiSafiSupported in interface BGPAfiSafiStatetablesKey - tables Keypublic final long getPrefixesInstalledCount(TablesKey tablesKey)
BGPAfiSafiStategetPrefixesInstalledCount in interface BGPAfiSafiStatetablesKey - tables Keypublic final long getPrefixesSentCount(@Nonnull TablesKey tablesKey)
BGPAfiSafiStategetPrefixesSentCount in interface BGPAfiSafiStatetablesKey - tablesKey Typepublic final long getPrefixesReceivedCount(TablesKey tablesKey)
BGPAfiSafiStategetPrefixesReceivedCount in interface BGPAfiSafiStatetablesKey - tablesKey Typepublic final Set<TablesKey> getAfiSafisAdvertized()
BGPAfiSafiStategetAfiSafisAdvertized in interface BGPAfiSafiStatepublic final Set<TablesKey> getAfiSafisReceived()
BGPAfiSafiStategetAfiSafisReceived in interface BGPAfiSafiStatepublic final boolean isGracefulRestartAdvertized(TablesKey tablesKey)
BGPGracelfulRestartStateisGracefulRestartAdvertized in interface BGPGracelfulRestartStatetablesKey - tables Keypublic final boolean isGracefulRestartReceived(TablesKey tablesKey)
BGPGracelfulRestartStateisGracefulRestartReceived in interface BGPGracelfulRestartStatetablesKey - tables Keypublic final boolean isLocalRestarting()
BGPGracelfulRestartStateisLocalRestarting in interface BGPGracelfulRestartStatepublic final int getPeerRestartTime()
BGPGracelfulRestartStategetPeerRestartTime in interface BGPGracelfulRestartStatepublic final boolean isPeerRestarting()
BGPGracelfulRestartStateisPeerRestarting in interface BGPGracelfulRestartStatepublic final void setAfiSafiGracefulRestartState(int peerRestartTime,
boolean peerRestarting,
boolean localRestarting)
protected final void setAdvertizedGracefulRestartTableTypes(List<TablesKey> receivedGraceful)
protected final void registerPrefixesSentCounter(TablesKey tablesKey, PrefixesSentCounters prefixesSentCounter)
protected final void registerPrefixesCounters(@Nonnull PrefixesReceivedCounters prefixesReceived, @Nonnull PrefixesInstalledCounters prefixesInstalled)
protected final void resetState()
public final BGPPeerState getPeerState()
BGPPeerStateConsumergetPeerState in interface BGPPeerStateConsumerpublic final long getErroneousUpdateReceivedCount()
BGPErrorHandlingStategetErroneousUpdateReceivedCount in interface BGPErrorHandlingStatepublic final long getUpdateMessagesSentCount()
BGPPeerMessagesStategetUpdateMessagesSentCount in interface BGPPeerMessagesStatepublic final long getNotificationMessagesSentCount()
BGPPeerMessagesStategetNotificationMessagesSentCount in interface BGPPeerMessagesStatepublic final long getUpdateMessagesReceivedCount()
BGPPeerMessagesStategetUpdateMessagesReceivedCount in interface BGPPeerMessagesStatepublic final long getNotificationMessagesReceivedCount()
BGPPeerMessagesStategetNotificationMessagesReceivedCount in interface BGPPeerMessagesStatepublic final void messageSent(org.opendaylight.yangtools.yang.binding.Notification msg)
BGPMessagesListenermessageSent in interface BGPMessagesListenermsg - messagepublic final void messageReceived(org.opendaylight.yangtools.yang.binding.Notification msg)
BGPMessagesListenermessageReceived in interface BGPMessagesListenermsg - messagepublic final boolean isActive()
BGPPeerStateisActive in interface BGPPeerStateprotected final void setActive(boolean active)
Copyright © 2019 OpenDaylight. All rights reserved.