Interface LabeledUnicast

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    CLabeledUnicastDestination, L3vpn, LabeledUnicastRoute, VpnDestination, VpnRoute

    @Generated("mdsal-binding-generator")
    public interface LabeledUnicast
    extends org.opendaylight.yangtools.yang.binding.DataObject

    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;
       }
     }
     
    The schema path to identify an instance is bgp-labeled-unicastlabeled-unicast
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        Class<? extends LabeledUnicast> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getLabelStack

        @Nullable List<LabelStack> getLabelStack()
        Return labelStack, or null 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, or null if it is not present.
      • nonnullLabelStack

        default @NonNull List<LabelStack> 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, or null if it is not present.
        Returns:
        IpPrefix prefix, or null 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