Package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev181109
Interface SrSubobject
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
SrEroSubobject
,SrEroType
,SrEroType
,SrEroType
,SrEroType
,SrEroType
,SrEroType
,SrEroType
,SrRroSubobject
,SrRroType
,SrRroType
,SrRroType
,SrRroType
,SrRroType
,SrRroType
,SrRroType
,SrRroType
,SrRroType
,SrRroType
public interface SrSubobject extends org.opendaylight.yangtools.yang.binding.DataObject
Common grouping for both SR-ERO and SR-RRO subobjects as they share the same content representation.This class represents the following YANG schema fragment defined in module odl-pcep-segment-routing
grouping sr-subobject { leaf c-flag { type boolean; default false; } leaf m-flag { type boolean; default false; } leaf sid-type { type sid-type; } leaf sid { type uint32; } choice nai { case ip-node-id { when "../sid-type = 'ipv4-node-id' or ../sid-type = 'ipv6-node-id'"; leaf ip-address { type inet:ip-address-no-zone; } } case ip-adjacency { when "../sid-type = 'ipv4-adjacency' or ../sid-type = 'ipv6-adjacency'"; leaf local-ip-address { type inet:ip-address-no-zone; } leaf remote-ip-address { type inet:ip-address-no-zone; } } case unnumbered-adjacency { when "../sid-type = 'unnumbered'"; leaf local-node-id { type uint32; } leaf local-interface-id { type uint32; } leaf remote-node-id { type uint32; } leaf remote-interface-id { type uint32; } } } }
The schema path to identify an instance is odl-pcep-segment-routing/sr-subobject
-
-
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 Modifier and Type Method Description @Nullable Nai
getNai()
Node or Adjacency Identifier@Nullable org.opendaylight.yangtools.yang.common.Uint32
getSid()
Segment Identifier@Nullable SidType
getSidType()
Class<? extends SrSubobject>
implementedInterface()
@Nullable Boolean
isCFlag()
@Nullable Boolean
isMFlag()
-
-
-
Method Detail
-
implementedInterface
Class<? extends SrSubobject> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
isCFlag
@Nullable Boolean isCFlag()
- Returns:
java.lang.Boolean
cFlag
, ornull
if not present
-
isMFlag
@Nullable Boolean isMFlag()
- Returns:
java.lang.Boolean
mFlag
, ornull
if not present
-
getSidType
@Nullable SidType getSidType()
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev181109.SidType
sidType
, ornull
if not present
-
getSid
@Nullable org.opendaylight.yangtools.yang.common.Uint32 getSid()
Segment Identifier- Returns:
org.opendaylight.yangtools.yang.common.Uint32
sid
, ornull
if not present
-
getNai
@Nullable Nai getNai()
Node or Adjacency Identifier- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev181109.sr.subobject.Nai
nai
, ornull
if not present
-
-