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 |
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 |
setAdvertizedGracefulRestartTableTypes(List<TablesKey> receivedGraceful) |
void |
setAfiSafiGracefulRestartState(int peerRestartTime,
boolean peerRestarting,
boolean localRestarting) |
getInstanceIdentifier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBGPAfiSafiState, getBGPErrorHandlingState, getBGPSessionState, getBGPTimersState, getBGPTransportState, getTotalPathsCount
getInstanceIdentifier
public 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()
BGPPeerState
getGroupId
in interface BGPPeerState
public final org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getNeighborAddress()
BGPPeerState
getNeighborAddress
in interface BGPPeerState
public final long getTotalPrefixes()
BGPPeerState
getTotalPrefixes
in interface BGPPeerState
public final BGPPeerMessagesState getBGPPeerMessagesState()
BGPPeerState
getBGPPeerMessagesState
in interface BGPPeerState
public final BGPGracelfulRestartState getBGPGracelfulRestart()
BGPPeerState
getBGPGracelfulRestart
in interface BGPPeerState
public final boolean isAfiSafiSupported(TablesKey tablesKey)
BGPAfiSafiState
isAfiSafiSupported
in interface BGPAfiSafiState
tablesKey
- tables Keypublic final long getPrefixesInstalledCount(TablesKey tablesKey)
BGPAfiSafiState
getPrefixesInstalledCount
in interface BGPAfiSafiState
tablesKey
- tables Keypublic final long getPrefixesSentCount(@Nonnull TablesKey tablesKey)
BGPAfiSafiState
getPrefixesSentCount
in interface BGPAfiSafiState
tablesKey
- tablesKey Typepublic final long getPrefixesReceivedCount(TablesKey tablesKey)
BGPAfiSafiState
getPrefixesReceivedCount
in interface BGPAfiSafiState
tablesKey
- tablesKey Typepublic final Set<TablesKey> getAfiSafisAdvertized()
BGPAfiSafiState
getAfiSafisAdvertized
in interface BGPAfiSafiState
public final Set<TablesKey> getAfiSafisReceived()
BGPAfiSafiState
getAfiSafisReceived
in interface BGPAfiSafiState
public final boolean isGracefulRestartAdvertized(TablesKey tablesKey)
BGPGracelfulRestartState
isGracefulRestartAdvertized
in interface BGPGracelfulRestartState
tablesKey
- tables Keypublic final boolean isGracefulRestartReceived(TablesKey tablesKey)
BGPGracelfulRestartState
isGracefulRestartReceived
in interface BGPGracelfulRestartState
tablesKey
- tables Keypublic final boolean isLocalRestarting()
BGPGracelfulRestartState
isLocalRestarting
in interface BGPGracelfulRestartState
public final int getPeerRestartTime()
BGPGracelfulRestartState
getPeerRestartTime
in interface BGPGracelfulRestartState
public final boolean isPeerRestarting()
BGPGracelfulRestartState
isPeerRestarting
in interface BGPGracelfulRestartState
public 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()
BGPPeerStateConsumer
getPeerState
in interface BGPPeerStateConsumer
public final long getErroneousUpdateReceivedCount()
BGPErrorHandlingState
getErroneousUpdateReceivedCount
in interface BGPErrorHandlingState
public final long getUpdateMessagesSentCount()
BGPPeerMessagesState
getUpdateMessagesSentCount
in interface BGPPeerMessagesState
public final long getNotificationMessagesSentCount()
BGPPeerMessagesState
getNotificationMessagesSentCount
in interface BGPPeerMessagesState
public final long getUpdateMessagesReceivedCount()
BGPPeerMessagesState
getUpdateMessagesReceivedCount
in interface BGPPeerMessagesState
public final long getNotificationMessagesReceivedCount()
BGPPeerMessagesState
getNotificationMessagesReceivedCount
in interface BGPPeerMessagesState
public final void messageSent(org.opendaylight.yangtools.yang.binding.Notification msg)
BGPMessagesListener
messageSent
in interface BGPMessagesListener
msg
- messagepublic final void messageReceived(org.opendaylight.yangtools.yang.binding.Notification msg)
BGPMessagesListener
messageReceived
in interface BGPMessagesListener
msg
- messageCopyright © 2018 OpenDaylight. All rights reserved.