Interface BgpAfiSafiGracefulRestartState
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
NeighborGracefulRestartStateAugmentation
,State5
@Generated("mdsal-binding-generator")
public interface BgpAfiSafiGracefulRestartState
extends org.opendaylight.yangtools.yang.binding.DataObject
Operational state information relevant to graceful restart for BGP
This class represents the following YANG schema fragment defined in module openconfig-bgp-operational
grouping bgp-afi-safi-graceful-restart_state { leaf peer-restart-time { type uint16 { range 0..4096; } } leaf peer-restarting { type boolean; } leaf local-restarting { type boolean; } leaf mode { type enumeration { enum HELPER-ONLY { } enum BILATERAL { } enum REMOTE-HELPER { } } } }
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
This class represents the following YANG schema fragment defined in module openconfig-bgp-operational -
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn localRestarting, ornull
if it is not present.getMode()
Return mode, ornull
if it is not present.Return peerRestarting, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
Return peerRestartTime, ornull
if it is not present.Class<? extends BgpAfiSafiGracefulRestartState>
default @NonNull Boolean
Return localRestarting, guaranteed to be non-null.default @NonNull BgpAfiSafiGracefulRestartState.Mode
Return mode, guaranteed to be non-null.default @NonNull Boolean
Return peerRestarting, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
Return peerRestartTime, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends BgpAfiSafiGracefulRestartState> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getPeerRestartTime
org.opendaylight.yangtools.yang.common.Uint16 getPeerRestartTime()Return peerRestartTime, ornull
if it is not present.The period of time (advertised by the peer) that the peer expects a restart of a BGP session to take
- Returns:
Uint16
peerRestartTime, ornull
if it is not present.
-
requirePeerRestartTime
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requirePeerRestartTime()Return peerRestartTime, guaranteed to be non-null.The period of time (advertised by the peer) that the peer expects a restart of a BGP session to take
- Returns:
Uint16
peerRestartTime, guaranteed to be non-null.- Throws:
NoSuchElementException
- if peerRestartTime is not present
-
getPeerRestarting
Boolean getPeerRestarting()Return peerRestarting, ornull
if it is not present.This flag indicates whether the remote neighbor is currently in the process of restarting, and hence received routes are currently stale
- Returns:
Boolean
peerRestarting, ornull
if it is not present.
-
requirePeerRestarting
Return peerRestarting, guaranteed to be non-null.This flag indicates whether the remote neighbor is currently in the process of restarting, and hence received routes are currently stale
- Returns:
Boolean
peerRestarting, guaranteed to be non-null.- Throws:
NoSuchElementException
- if peerRestarting is not present
-
getLocalRestarting
Boolean getLocalRestarting()Return localRestarting, ornull
if it is not present.This flag indicates whether the local neighbor is currently restarting. The flag is unset after all NLRI have been advertised to the peer, and the End-of-RIB (EOR) marker has been unset
- Returns:
Boolean
localRestarting, ornull
if it is not present.
-
requireLocalRestarting
Return localRestarting, guaranteed to be non-null.This flag indicates whether the local neighbor is currently restarting. The flag is unset after all NLRI have been advertised to the peer, and the End-of-RIB (EOR) marker has been unset
- Returns:
Boolean
localRestarting, guaranteed to be non-null.- Throws:
NoSuchElementException
- if localRestarting is not present
-
getMode
BgpAfiSafiGracefulRestartState.Mode getMode()Return mode, ornull
if it is not present.Ths leaf indicates the mode of operation of BGP graceful restart with the peer
- Returns:
Mode
mode, ornull
if it is not present.
-
requireMode
Return mode, guaranteed to be non-null.Ths leaf indicates the mode of operation of BGP graceful restart with the peer
- Returns:
Mode
mode, guaranteed to be non-null.- Throws:
NoSuchElementException
- if mode is not present
-