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,MatchGrouping,OfHeader
- All Known Subinterfaces:
PacketInMessage
@Generated("mdsal-binding-generator")
public interface PacketIn
extends org.opendaylight.yangtools.yang.binding.DataObject, OfHeader, MatchGrouping
This class represents the following YANG schema fragment defined in module openflow-protocol
grouping packet-in {
uses ofHeader;
leaf buffer-id {
type uint32;
}
leaf total-len {
type uint16;
}
leaf reason {
type oft:packet-in-reason;
}
leaf table-id {
type oft:table-id;
}
leaf cookie {
type uint64;
}
uses oxm:match-grouping;
leaf data {
type binary;
}
leaf in-port {
type uint16;
}
}
-
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 TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint32Return bufferId, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint64Return cookie, ornullif it is not present.byte[]getData()Return data, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint16Return inPort, ornullif it is not present.Return reason, ornullif it is not present.Return tableId, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint16Return totalLen, ornullif it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return bufferId, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint64Return cookie, guaranteed to be non-null.default byte @NonNull []Return data, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16Return inPort, guaranteed to be non-null.default @NonNull PacketInReasonReturn reason, guaranteed to be non-null.default @NonNull TableIdReturn tableId, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16Return totalLen, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchGrouping
getMatch, nonnullMatchMethods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader
getVersion, getXid, requireVersion, requireXid
-
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 interfaceMatchGrouping- Specified by:
implementedInterfacein interfaceOfHeader
-
getBufferId
org.opendaylight.yangtools.yang.common.Uint32 getBufferId()Return bufferId, ornullif it is not present.- Returns:
Uint32bufferId, ornullif it is not present.
-
requireBufferId
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireBufferId()Return bufferId, guaranteed to be non-null.- Returns:
Uint32bufferId, guaranteed to be non-null.- Throws:
NoSuchElementException- if bufferId is not present
-
getTotalLen
org.opendaylight.yangtools.yang.common.Uint16 getTotalLen()Return totalLen, ornullif it is not present.- Returns:
Uint16totalLen, ornullif it is not present.
-
requireTotalLen
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireTotalLen()Return totalLen, guaranteed to be non-null.- Returns:
Uint16totalLen, guaranteed to be non-null.- Throws:
NoSuchElementException- if totalLen is not present
-
getReason
PacketInReason getReason()Return reason, ornullif it is not present.- Returns:
PacketInReasonreason, ornullif it is not present.
-
requireReason
Return reason, guaranteed to be non-null.- Returns:
PacketInReasonreason, guaranteed to be non-null.- Throws:
NoSuchElementException- if reason 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
-
getCookie
org.opendaylight.yangtools.yang.common.Uint64 getCookie()Return cookie, ornullif it is not present.- Returns:
Uint64cookie, ornullif it is not present.
-
requireCookie
default @NonNull org.opendaylight.yangtools.yang.common.Uint64 requireCookie()Return cookie, guaranteed to be non-null.- Returns:
Uint64cookie, guaranteed to be non-null.- Throws:
NoSuchElementException- if cookie is not present
-
getData
byte[] getData()Return data, ornullif it is not present.- Returns:
byte[]data, ornullif it is not present.
-
requireData
default byte @NonNull [] requireData()Return data, guaranteed to be non-null.- Returns:
byte[]data, guaranteed to be non-null.- Throws:
NoSuchElementException- if data is not present
-
getInPort
org.opendaylight.yangtools.yang.common.Uint16 getInPort()Return inPort, ornullif it is not present.- Returns:
Uint16inPort, ornullif it is not present.
-
requireInPort
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireInPort()Return inPort, guaranteed to be non-null.- Returns:
Uint16inPort, guaranteed to be non-null.- Throws:
NoSuchElementException- if inPort is not present
-