Interface SrNodeAttributes
-
- All Superinterfaces:
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; } } } } } }
The schema path to identify an instance is network-topology-srsr-node-attributes
-
-
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 @Nullable Map<SegmentsKey,Segments>
getSegments()
Return segments, ornull
if it is not present.Class<? extends SrNodeAttributes>
implementedInterface()
default @NonNull Map<SegmentsKey,Segments>
nonnullSegments()
Return segments, or an empty list if it is not present.
-
-
-
Method Detail
-
implementedInterface
Class<? extends SrNodeAttributes> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.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
default @NonNull Map<SegmentsKey,Segments> 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.
-
-