Interface Label

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    LabelStack

    @Generated("mdsal-binding-generator")
    public interface Label
    extends org.opendaylight.yangtools.yang.binding.DataObject
    The lable stack entry.

    This class represents the following YANG schema fragment defined in module bgp-labeled-unicast

     grouping label {
       leaf label-value {
         type netc:mpls-label;
       }
     }
     
    The schema path to identify an instance is bgp-labeled-unicastlabel
    • Field Detail

      • QNAME

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

      • implementedInterface

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

        MplsLabel getLabelValue()
        Return labelValue, or null if it is not present.
        Returns:
        MplsLabel labelValue, or null if it is not present.
      • requireLabelValue

        default @NonNull MplsLabel requireLabelValue()
        Return labelValue, guaranteed to be non-null.
        Returns:
        MplsLabel labelValue, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if labelValue is not present