Interface PacketIn
- 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,RawPacket
- All Known Subinterfaces:
PacketInMessage,PacketReceived
@Generated("mdsal-binding-generator")
public interface PacketIn
extends org.opendaylight.yangtools.yang.binding.DataObject, RawPacket
This class represents the following YANG schema fragment defined in module packet-processing
grouping packet-in {
leaf connection-cookie {
type connection-cookie;
}
leaf flow-cookie {
type flow-type:flow-cookie;
}
leaf table-id {
type table-type:table-id;
}
leaf packet-in-reason {
type identityref {
base packet-in-reason;
}
}
uses raw-packet;
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn connectionCookie, ornullif it is not present.Return flowCookie, ornullif it is not present.Return packetInReason, ornullif it is not present.Return tableId, ornullif it is not present.default @NonNull ConnectionCookieReturn connectionCookie, guaranteed to be non-null.default @NonNull FlowCookieReturn flowCookie, guaranteed to be non-null.default @NonNull PacketInReasonReturn packetInReason, guaranteed to be non-null.default @NonNull TableIdReturn tableId, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.RawPacket
getIngress, getPayload, requireIngress, requirePayload
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject- Specified by:
implementedInterfacein interfaceRawPacket
-
getConnectionCookie
ConnectionCookie getConnectionCookie()Return connectionCookie, ornullif it is not present.- Returns:
ConnectionCookieconnectionCookie, ornullif it is not present.
-
requireConnectionCookie
Return connectionCookie, guaranteed to be non-null.- Returns:
ConnectionCookieconnectionCookie, guaranteed to be non-null.- Throws:
NoSuchElementException- if connectionCookie is not present
-
getFlowCookie
FlowCookie getFlowCookie()Return flowCookie, ornullif it is not present.- Returns:
FlowCookieflowCookie, ornullif it is not present.
-
requireFlowCookie
Return flowCookie, guaranteed to be non-null.- Returns:
FlowCookieflowCookie, guaranteed to be non-null.- Throws:
NoSuchElementException- if flowCookie is not present
-
getTableId
TableId getTableId()Return tableId, ornullif it is not present.- Returns:
TableIdtableId, ornullif it is not present.
-
requireTableId
Return tableId, guaranteed to be non-null.- Returns:
TableIdtableId, guaranteed to be non-null.- Throws:
NoSuchElementException- if tableId is not present
-
getPacketInReason
PacketInReason getPacketInReason()Return packetInReason, ornullif it is not present.- Returns:
PacketInReasonpacketInReason, ornullif it is not present.
-
requirePacketInReason
Return packetInReason, guaranteed to be non-null.- Returns:
PacketInReasonpacketInReason, guaranteed to be non-null.- Throws:
NoSuchElementException- if packetInReason is not present
-