Interface BgpNeighborState
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
NeighborStateAugmentation
,State8
@Generated("mdsal-binding-generator") public interface BgpNeighborState extends org.opendaylight.yangtools.yang.binding.DataObject
Grouping containing operational state variables relating to a BGP neighborThis class represents the following YANG schema fragment defined in module openconfig-bgp-operational
grouping bgp-neighbor_state { leaf session-state { type enumeration { enum IDLE { } enum CONNECT { } enum ACTIVE { } enum OPENSENT { } enum OPENCONFIRM { } enum ESTABLISHED { } } } leaf-list supported-capabilities { type identityref { base bgp-capability; } } }
The schema path to identify an instance is openconfig-bgp-operationalbgp-neighbor_state
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BgpNeighborState.SessionState
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BgpNeighborState.SessionState
getSessionState()
Return sessionState, ornull
if it is not present.@Nullable List<Class<? extends BgpCapability>>
getSupportedCapabilities()
Return supportedCapabilities, ornull
if it is not present.Class<? extends BgpNeighborState>
implementedInterface()
default @NonNull BgpNeighborState.SessionState
requireSessionState()
Return sessionState, guaranteed to be non-null.default @NonNull List<Class<? extends BgpCapability>>
requireSupportedCapabilities()
Return supportedCapabilities, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends BgpNeighborState> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getSessionState
BgpNeighborState.SessionState getSessionState()
Return sessionState, ornull
if it is not present.Operational state of the BGP peer
- Returns:
SessionState
sessionState, ornull
if it is not present.
-
requireSessionState
default @NonNull BgpNeighborState.SessionState requireSessionState()
Return sessionState, guaranteed to be non-null.Operational state of the BGP peer
- Returns:
SessionState
sessionState, guaranteed to be non-null.- Throws:
NoSuchElementException
- if sessionState is not present
-
getSupportedCapabilities
@Nullable List<Class<? extends BgpCapability>> getSupportedCapabilities()
Return supportedCapabilities, ornull
if it is not present.BGP capabilities negotiated as supported with the peer
- Returns:
List<Class<? extends BgpCapability>>
supportedCapabilities, ornull
if it is not present.
-
requireSupportedCapabilities
default @NonNull List<Class<? extends BgpCapability>> requireSupportedCapabilities()
Return supportedCapabilities, guaranteed to be non-null.BGP capabilities negotiated as supported with the peer
- Returns:
List<Class<? extends BgpCapability>>
supportedCapabilities, guaranteed to be non-null.- Throws:
NoSuchElementException
- if supportedCapabilities is not present
-
-