Interface RawPacket
- 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:
PacketIn,PacketInMessage,PacketReceived,TransmitPacketInput
@Generated("mdsal-binding-generator")
public interface RawPacket
extends org.opendaylight.yangtools.binding.Grouping
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;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionReturn ingress, ornullif it is not present.byte[]Return payload, ornullif it is not present.default @NonNull NodeConnectorRefReturn ingress, guaranteed to be non-null.default byte @NonNull []Return payload, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getIngress
NodeConnectorRef getIngress()Return ingress, ornullif it is not present.- Returns:
NodeConnectorRefingress, ornullif it is not present.
-
requireIngress
Return ingress, guaranteed to be non-null.- Returns:
NodeConnectorRefingress, guaranteed to be non-null.- Throws:
NoSuchElementException- if ingress is not present
-
getPayload
byte[] getPayload()Return payload, ornullif it is not present.- Returns:
byte[]payload, ornullif 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
-