Package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev200720
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
@Generated("mdsal-binding-generator") 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 nai-type { type nai-type; } leaf m-flag { type boolean; default false; } leaf c-flag { type boolean; default false; } leaf sid { type uint32; } choice nai { case ip-node-id { when "../nai-type = 'ipv4-node-id' or ../nai-type = 'ipv6-node-id'"; leaf ip-address { type inet:ip-address-no-zone; } } case ip-adjacency { when "../nai-type = 'ipv4-adjacency' or ../nai-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 "../nai-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; } } case ipv6-local { when "../nai-type = 'ipv6-local'"; leaf local-ipv6-address { type inet:ipv6-address-no-zone; } leaf local-id { type uint32; } leaf remote-ipv6-address { type inet:ipv6-address-no-zone; } leaf remote-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 Default Methods Deprecated Methods Modifier and Type Method Description Boolean
getCFlag()
Return cFlag, ornull
if it is not present.Boolean
getMFlag()
Return mFlag, ornull
if it is not present.Nai
getNai()
Return nai, ornull
if it is not present.NaiType
getNaiType()
Return naiType, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint32
getSid()
Return sid, ornull
if it is not present.Class<? extends SrSubobject>
implementedInterface()
default Boolean
isCFlag()
Deprecated, for removal: This API element is subject to removal in a future version.default Boolean
isMFlag()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
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
-
getNaiType
NaiType getNaiType()
Return naiType, ornull
if it is not present.Node or Adjacency Identifier Type (NT)
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev200720.NaiType
naiType, ornull
if it is not present.
-
getMFlag
Boolean getMFlag()
Return mFlag, ornull
if it is not present.If this bit is set to 1, the SID value represents an MPLS label stack entry
- Returns:
java.lang.Boolean
mFlag, ornull
if it is not present.
-
isMFlag
@Deprecated(forRemoval=true) default Boolean isMFlag()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCFlag
Boolean getCFlag()
Return cFlag, ornull
if it is not present.TC, S & TTL fields in the MPLS label are specified by the PCE if M & C are set to 1
- Returns:
java.lang.Boolean
cFlag, ornull
if it is not present.
-
isCFlag
@Deprecated(forRemoval=true) default Boolean isCFlag()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSid
org.opendaylight.yangtools.yang.common.Uint32 getSid()
Return sid, ornull
if it is not present.Segment Identifier
- Returns:
org.opendaylight.yangtools.yang.common.Uint32
sid, ornull
if it is not present.
-
getNai
Nai getNai()
Return nai, ornull
if it is not present.Node or Adjacency Identifier
- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.segment.routing.rev200720.sr.subobject.Nai
nai, ornull
if it is not present.
-
-