public abstract class BGPPeerStateImpl extends DefaultRibReference implements BGPPeerState, BGPAfiSafiState, BGPGracelfulRestartState, BGPLlGracelfulRestartState, BGPErrorHandlingState, BGPPeerMessagesState, BGPPeerStateConsumer, BGPMessagesListener
| Constructor and Description |
|---|
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,
@NonNull Map<TablesKey,Integer> afiSafisLlGracefulAdvertized) |
| 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.
|
int |
getLlGracefulRestartTimer(TablesKey tablesKey)
If table is both advertised and received return timer with lower value.
|
BgpAfiSafiGracefulRestartState.Mode |
getMode()
Returns operational mode of graceful restart.
|
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 |
isLlGracefulRestartAdvertised(TablesKey tablesKey)
is Long-lived Graceful Restart Support advertised to neighbor.
|
boolean |
isLlGracefulRestartReceived(TablesKey tablesKey)
is Long-lived Graceful Restart Support advertised 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(@NonNull PrefixesReceivedCounters newPrefixesReceived,
@NonNull PrefixesInstalledCounters newPrefixesInstalled) |
protected void |
registerPrefixesSentCounter(TablesKey tablesKey,
PrefixesSentCounters prefixesSentCounter) |
protected void |
resetState() |
protected void |
setActive(boolean active) |
protected void |
setAdvertizedGracefulRestartTableTypes(List<TablesKey> receivedGraceful) |
void |
setAdvertizedLlGracefulRestartTableTypes(Map<TablesKey,Integer> afiSafiReceived) |
void |
setAfiSafiGracefulRestartState(int newPeerRestartTime,
boolean newPeerRestarting,
boolean newLocalRestarting) |
protected void |
setLocalRestartingState(boolean restarting) |
protected void |
setRestartingState() |
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, @NonNull Map<TablesKey,Integer> afiSafisLlGracefulAdvertized)
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(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 newPeerRestartTime,
boolean newPeerRestarting,
boolean newLocalRestarting)
protected final void setAdvertizedGracefulRestartTableTypes(List<TablesKey> receivedGraceful)
protected final void registerPrefixesSentCounter(TablesKey tablesKey, PrefixesSentCounters prefixesSentCounter)
protected final void registerPrefixesCounters(@NonNull PrefixesReceivedCounters newPrefixesReceived, @NonNull PrefixesInstalledCounters newPrefixesInstalled)
protected final void resetState()
protected final void setRestartingState()
protected final void setLocalRestartingState(boolean restarting)
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)
public final BgpAfiSafiGracefulRestartState.Mode getMode()
BGPGracelfulRestartStategetMode in interface BGPGracelfulRestartStatepublic final void setAdvertizedLlGracefulRestartTableTypes(Map<TablesKey,Integer> afiSafiReceived)
public final boolean isLlGracefulRestartAdvertised(TablesKey tablesKey)
BGPLlGracelfulRestartStateisLlGracefulRestartAdvertised in interface BGPLlGracelfulRestartStatetablesKey - tables Keypublic final boolean isLlGracefulRestartReceived(TablesKey tablesKey)
BGPLlGracelfulRestartStateisLlGracefulRestartReceived in interface BGPLlGracelfulRestartStatetablesKey - tables Keypublic final int getLlGracefulRestartTimer(TablesKey tablesKey)
BGPLlGracelfulRestartStategetLlGracefulRestartTimer in interface BGPLlGracelfulRestartStatetablesKey - tables keyCopyright © 2020 OpenDaylight. All rights reserved.