Interface BgpNeighborState
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.Grouping
- All Known Subinterfaces:
NeighborStateAugmentation,State8
@Generated("mdsal-binding-generator")
public interface BgpNeighborState
extends org.opendaylight.yangtools.binding.Grouping
Grouping containing operational state variables relating to a BGP neighbor
This 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;
}
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThis class represents the following YANG schema fragment defined in module openconfig-bgp-operational -
Method Summary
Modifier and TypeMethodDescriptionReturn sessionState, ornullif it is not present.@Nullable Set<BgpCapability> Return supportedCapabilities, ornullif it is not present.default @NonNull BgpNeighborState.SessionStateReturn sessionState, guaranteed to be non-null.default @NonNull Set<BgpCapability> Return supportedCapabilities, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getSessionState
BgpNeighborState.SessionState getSessionState()Return sessionState, ornullif it is not present.Operational state of the BGP peer- Returns:
SessionStatesessionState, ornullif it is not present.
-
requireSessionState
Return sessionState, guaranteed to be non-null.Operational state of the BGP peer- Returns:
SessionStatesessionState, guaranteed to be non-null.- Throws:
NoSuchElementException- if sessionState is not present
-
getSupportedCapabilities
@Nullable Set<BgpCapability> getSupportedCapabilities()Return supportedCapabilities, ornullif it is not present.BGP capabilities negotiated as supported with the peer- Returns:
Set<BgpCapability>supportedCapabilities, ornullif it is not present.
-
requireSupportedCapabilities
Return supportedCapabilities, guaranteed to be non-null.BGP capabilities negotiated as supported with the peer- Returns:
Set<BgpCapability>supportedCapabilities, guaranteed to be non-null.- Throws:
NoSuchElementException- if supportedCapabilities is not present
-