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
All Known Subinterfaces:
NxDecap, NxEncap, PacketTypeMatch

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

This class represents the following YANG schema fragment defined in module opendaylight-match-types

 grouping packet-type-fields {
   leaf packet-type {
     type uint32;
   }
 }
 
  • 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
    org.opendaylight.yangtools.yang.common.Uint32
    Return packetType, or null if it is not present.
     
    default @NonNull org.opendaylight.yangtools.yang.common.Uint32
    Return packetType, guaranteed to be non-null.
  • 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 PacketTypeFields> 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
    • getPacketType

      org.opendaylight.yangtools.yang.common.Uint32 getPacketType()
      Return packetType, or null if it is not present.
           
               Outermost header type of a packet. It's a 4 byte value, the 2 most significant
               bytes are the namespace and the next 2 bytes are the type.
           
       
      Returns:
      Uint32 packetType, or null if it is not present.
    • requirePacketType

      default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requirePacketType()
      Return packetType, guaranteed to be non-null.
           
               Outermost header type of a packet. It's a 4 byte value, the 2 most significant
               bytes are the namespace and the next 2 bytes are the type.
           
       
      Returns:
      Uint32 packetType, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if packetType is not present