Interface SrNodeAttributes
- 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:
Node1
@Generated("mdsal-binding-generator")
public interface SrNodeAttributes
extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module network-topology-sr
grouping sr-node-attributes { list segments { leaf segment-id { type segment-id; } key segment-id; choice segment-specification { case adjacency-case { container adjacency { leaf adjacency { type nt:link-ref; } } } case prefix-case { container prefix { leaf prefix { type inet:ip-prefix; } leaf node-sid { type boolean; default false; } } } } } }
-
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 TypeMethodDescription@Nullable Map<SegmentsKey,
Segments> Return segments, ornull
if it is not present.Class<? extends SrNodeAttributes>
default @NonNull Map<SegmentsKey,
Segments> Return segments, or an empty list if it is not present.
-
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 SrNodeAttributes> 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
-
getSegments
@Nullable Map<SegmentsKey,Segments> getSegments()Return segments, ornull
if it is not present.- Returns:
Map<SegmentsKey, Segments>
segments, ornull
if it is not present.
-
nonnullSegments
Return segments, or an empty list if it is not present.- Returns:
Map<SegmentsKey, Segments>
segments, or an empty list if it is not present.
-