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
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 Modifier and Type Method Description Nai
getNai()
Node or Adjacency IdentifierNaiType
getNaiType()
Node or Adjacency Identifier Type (NT)org.opendaylight.yangtools.yang.common.Uint32
getSid()
Segment IdentifierClass<? extends SrSubobject>
implementedInterface()
Boolean
isCFlag()
TC, S & TTL fields in the MPLS label are specified by the PCE if M & C are set to 1Boolean
isMFlag()
If this bit is set to 1, the SID value represents an MPLS label stack entry
-
-
-
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()
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 not present
-
isMFlag
Boolean isMFlag()
If this bit is set to 1, the SID value represents an MPLS label stack entry- Returns:
java.lang.Boolean
mFlag
, ornull
if not present
-
isCFlag
Boolean isCFlag()
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 not present
-
getSid
org.opendaylight.yangtools.yang.common.Uint32 getSid()
Segment Identifier- Returns:
org.opendaylight.yangtools.yang.common.Uint32
sid
, ornull
if not present
-
getNai
Nai getNai()
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 not present
-
-