Interface PacketIn
-
- All Superinterfaces:
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
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
YANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConnectionCookie
getConnectionCookie()
Return connectionCookie, ornull
if it is not present.FlowCookie
getFlowCookie()
Return flowCookie, ornull
if it is not present.Class<? extends PacketInReason>
getPacketInReason()
Return packetInReason, ornull
if it is not present.TableId
getTableId()
Return tableId, ornull
if it is not present.Class<? extends PacketIn>
implementedInterface()
default @NonNull ConnectionCookie
requireConnectionCookie()
Return connectionCookie, guaranteed to be non-null.default @NonNull FlowCookie
requireFlowCookie()
Return flowCookie, guaranteed to be non-null.default @NonNull Class<? extends PacketInReason>
requirePacketInReason()
Return packetInReason, guaranteed to be non-null.default @NonNull TableId
requireTableId()
Return 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
-
-
-
-
Method Detail
-
implementedInterface
Class<? extends PacketIn> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfaceRawPacket
-
getConnectionCookie
ConnectionCookie getConnectionCookie()
Return connectionCookie, ornull
if it is not present.- Returns:
ConnectionCookie
connectionCookie, ornull
if it is not present.
-
requireConnectionCookie
default @NonNull ConnectionCookie requireConnectionCookie()
Return connectionCookie, guaranteed to be non-null.- Returns:
ConnectionCookie
connectionCookie, guaranteed to be non-null.- Throws:
NoSuchElementException
- if connectionCookie is not present
-
getFlowCookie
FlowCookie getFlowCookie()
Return flowCookie, ornull
if it is not present.- Returns:
FlowCookie
flowCookie, ornull
if it is not present.
-
requireFlowCookie
default @NonNull FlowCookie requireFlowCookie()
Return flowCookie, guaranteed to be non-null.- Returns:
FlowCookie
flowCookie, guaranteed to be non-null.- Throws:
NoSuchElementException
- if flowCookie is not present
-
getTableId
TableId getTableId()
Return tableId, ornull
if it is not present.- Returns:
TableId
tableId, ornull
if it is not present.
-
requireTableId
default @NonNull TableId requireTableId()
Return tableId, guaranteed to be non-null.- Returns:
TableId
tableId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if tableId is not present
-
getPacketInReason
Class<? extends PacketInReason> getPacketInReason()
Return packetInReason, ornull
if it is not present.- Returns:
Class<? extends PacketInReason>
packetInReason, ornull
if it is not present.
-
requirePacketInReason
default @NonNull Class<? extends PacketInReason> requirePacketInReason()
Return packetInReason, guaranteed to be non-null.- Returns:
Class<? extends PacketInReason>
packetInReason, guaranteed to be non-null.- Throws:
NoSuchElementException
- if packetInReason is not present
-
-