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:
LabelStack

@Generated("mdsal-binding-generator") public interface Label extends org.opendaylight.yangtools.binding.Grouping
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;
   }
 }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Return labelValue, or null if it is not present.
    default @NonNull MplsLabel
    Return labelValue, guaranteed to be non-null.

    Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract

    implementedInterface
  • Method Details

    • 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