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:
PacketIn, PacketInMessage, PacketReceived, TransmitPacketInput

@Generated("mdsal-binding-generator") public interface RawPacket extends org.opendaylight.yangtools.yang.binding.DataObject
Basic packet structure.

This class represents the following YANG schema fragment defined in module packet-processing

 grouping raw-packet {
   leaf ingress {
     type inv:node-connector-ref;
   }
   leaf payload {
     type binary;
   }
 }
 
  • 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 ingress, or null if it is not present.
    byte[]
    Return payload, or null if it is not present.
    Class<? extends RawPacket>
     
    default @NonNull NodeConnectorRef
    Return ingress, guaranteed to be non-null.
    default byte @NonNull []
    Return payload, 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 RawPacket> 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
    • getIngress

      NodeConnectorRef getIngress()
      Return ingress, or null if it is not present.
      Returns:
      NodeConnectorRef ingress, or null if it is not present.
    • requireIngress

      default @NonNull NodeConnectorRef requireIngress()
      Return ingress, guaranteed to be non-null.
      Returns:
      NodeConnectorRef ingress, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if ingress is not present
    • getPayload

      byte[] getPayload()
      Return payload, or null if it is not present.
      Returns:
      byte[] payload, or null if it is not present.
    • requirePayload

      default byte @NonNull [] requirePayload()
      Return payload, guaranteed to be non-null.
      Returns:
      byte[] payload, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if payload is not present