Interface Linkstate
- 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
,RouteDistinguisherGrouping
- All Known Subinterfaces:
CLinkstateDestination
,LinkstateRoute
@Generated("mdsal-binding-generator")
public interface Linkstate
extends org.opendaylight.yangtools.binding.Grouping, RouteDistinguisherGrouping
This class represents the following YANG schema fragment defined in module bgp-linkstate
grouping linkstate { uses bgp-t:route-distinguisher-grouping { refine route-distinguisher { mandatory false; } } leaf protocol-id { type protocol-id; } leaf identifier { type identifier; } choice object-type { case node-case { container node-descriptors { uses node-identifier; } } case link-case { container local-node-descriptors { uses node-identifier; uses bgp-epe:epe-node-descriptors; } container remote-node-descriptors { uses node-identifier; uses bgp-epe:epe-node-descriptors; } container link-descriptors { uses link-identifier; } } case prefix-case { container advertising-node-descriptors { uses node-identifier; } container prefix-descriptors { uses prefix-identifiers; } } case srv6-sid-case { container srv6-node-descriptors { uses node-identifier; uses bgp-epe:epe-node-descriptors; } container srv6-sid-information { leaf srv6-sid-tlv { type bgp-sr:srv6-sid; } } container srv6-attributes { uses bgp-sr:srv6-attributes; } } } }
-
Method Summary
Modifier and TypeMethodDescriptionReturn identifier, ornull
if it is not present.Return objectType, ornull
if it is not present.Return protocolId, ornull
if it is not present.default @NonNull Identifier
Return identifier, guaranteed to be non-null.default @NonNull ProtocolId
Return protocolId, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.RouteDistinguisherGrouping
getRouteDistinguisher, requireRouteDistinguisher
-
Method Details
-
getProtocolId
ProtocolId getProtocolId()Return protocolId, ornull
if it is not present.- Returns:
ProtocolId
protocolId, ornull
if it is not present.
-
requireProtocolId
Return protocolId, guaranteed to be non-null.- Returns:
ProtocolId
protocolId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if protocolId is not present
-
getIdentifier
Identifier getIdentifier()Return identifier, ornull
if it is not present.- Returns:
Identifier
identifier, ornull
if it is not present.
-
requireIdentifier
Return identifier, guaranteed to be non-null.- Returns:
Identifier
identifier, guaranteed to be non-null.- Throws:
NoSuchElementException
- if identifier is not present
-
getObjectType
ObjectType getObjectType()Return objectType, ornull
if it is not present.- Returns:
ObjectType
objectType, ornull
if it is not present.
-