All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, SidLabelIndex
All Known Subinterfaces:
PrefixSid, PrefixSidTlv, SrPrefix

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

This class represents the following YANG schema fragment defined in module bgp-segment-routing

 grouping prefix-sid-tlv {
   choice flags {
     case isis-prefix-flags-case {
       container isis-prefix-flags {
         uses prefix-flags;
         leaf readvertisement {
           type boolean;
         }
         leaf node-sid {
           type boolean;
         }
       }
     }
     case ospf-prefix-flags-case {
       container ospf-prefix-flags {
         uses prefix-flags;
         leaf mapping-server {
           type boolean;
         }
       }
     }
   }
   leaf algorithm {
     type algorithm;
   }
   uses sid-label-index;
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return algorithm, or null if it is not present.
    Return flags, or null if it is not present.
    Class<? extends PrefixSidTlv>
     
    default @NonNull Algorithm
    Return algorithm, guaranteed to be non-null.

    Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.segment.routing.ext.rev200120.SidLabelIndex

    getSidLabelIndex
  • Field Details

    • QNAME

      static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends PrefixSidTlv> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      Specified by:
      implementedInterface in interface SidLabelIndex
    • getFlags

      Flags getFlags()
      Return flags, or null if it is not present.
      Returns:
      Flags flags, or null if it is not present.
    • getAlgorithm

      Algorithm getAlgorithm()
      Return algorithm, or null if it is not present.
      Returns:
      Algorithm algorithm, or null if it is not present.
    • requireAlgorithm

      default @NonNull Algorithm requireAlgorithm()
      Return algorithm, guaranteed to be non-null.
      Returns:
      Algorithm algorithm, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if algorithm is not present