Interface BGPGracelfulRestartState
-
- All Known Subinterfaces:
BGPAfiSafiState
,BGPLlGracelfulRestartState
- All Known Implementing Classes:
ApplicationPeer
,BGPPeer
,BGPPeerStateImpl
@NonNullByDefault public interface BGPGracelfulRestartState
BGP Operational Graceful Restart State.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BgpAfiSafiGracefulRestartState.Mode
getMode()
Returns operational mode of graceful restart.int
getPeerRestartTime()
The period of time (advertised by the peer) that the peer expects a restart of a BGP session to take.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.
-
-
-
Method Detail
-
isGracefulRestartAdvertized
boolean isGracefulRestartAdvertized(TablesKey tablesKey)
is Graceful Restart Supported advertized to neighbor.- Parameters:
tablesKey
- tables Key- Returns:
- true if Afi Safi was advertized to neighbor
-
isGracefulRestartReceived
boolean isGracefulRestartReceived(TablesKey tablesKey)
is Graceful Restart Supported advertized by neighbor.- Parameters:
tablesKey
- tables Key- Returns:
- true if Afi Safi was advertized by neighbor
-
isLocalRestarting
boolean isLocalRestarting()
This flag indicates whether the local neighbor is currently restarting.- Returns:
- local restarting state
-
getPeerRestartTime
int getPeerRestartTime()
The period of time (advertised by the peer) that the peer expects a restart of a BGP session to take.- Returns:
- time
-
isPeerRestarting
boolean isPeerRestarting()
This flag indicates whether the remote neighbor is currently in the process of restarting, and hence received routes are currently stale.- Returns:
- peer is restarting
-
getMode
BgpAfiSafiGracefulRestartState.Mode getMode()
Returns operational mode of graceful restart. Result depends on advertising and receiving graceful restart capability to/from peer.- Returns:
- graceful restart operational mode
-
-