Package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.labeled.unicast.rev180329
Interface LabeledUnicast
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>
,org.opendaylight.yangtools.binding.BindingObject
,org.opendaylight.yangtools.binding.DataContainer
,org.opendaylight.yangtools.binding.Grouping
- All Known Subinterfaces:
CLabeledUnicastDestination
,L3vpn
,LabeledUnicastRoute
,VpnDestination
,VpnRoute
@Generated("mdsal-binding-generator")
public interface LabeledUnicast
extends org.opendaylight.yangtools.binding.Grouping
This class represents the following YANG schema fragment defined in module bgp-labeled-unicast
grouping labeled-unicast { list label-stack { uses label; ordered-by user; } leaf prefix { type inet:ip-prefix; } }
-
Method Summary
Modifier and TypeMethodDescription@Nullable List
<LabelStack> Return labelStack, ornull
if it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix
Return prefix, ornull
if it is not present.default @NonNull List
<LabelStack> Return labelStack, or an empty list if it is not present.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix
Return prefix, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getLabelStack
@Nullable List<LabelStack> getLabelStack()Return labelStack, ornull
if it is not present.The Label field carries one or more labels (that corresponds to the stack of labels). Each label is encoded as 3 octets, where the high-order 20 bits contain the label value, and the low order bit contains 'Bottom of Stack'.
- Returns:
List<LabelStack>
labelStack, ornull
if it is not present.
-
nonnullLabelStack
Return labelStack, or an empty list if it is not present.- Returns:
List<LabelStack>
labelStack, or an empty list if it is not present.
-
getPrefix
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getPrefix()Return prefix, ornull
if it is not present.- Returns:
IpPrefix
prefix, ornull
if it is not present.
-
requirePrefix
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix requirePrefix()Return prefix, guaranteed to be non-null.- Returns:
IpPrefix
prefix, guaranteed to be non-null.- Throws:
NoSuchElementException
- if prefix is not present
-