Interface PacketTypeFields
- 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:
NxDecap
,NxEncap
,PacketTypeMatch
@Generated("mdsal-binding-generator")
public interface PacketTypeFields
extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module opendaylight-match-types
grouping packet-type-fields { leaf packet-type { type uint32; } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint32
Return packetType, ornull
if it is not present.Class<? extends PacketTypeFields>
default @NonNull org.opendaylight.yangtools.yang.common.Uint32
Return packetType, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends PacketTypeFields> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getPacketType
org.opendaylight.yangtools.yang.common.Uint32 getPacketType()Return packetType, ornull
if it is not present.Outermost header type of a packet. It's a 4 byte value, the 2 most significant bytes are the namespace and the next 2 bytes are the type.
- Returns:
Uint32
packetType, ornull
if it is not present.
-
requirePacketType
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requirePacketType()Return packetType, guaranteed to be non-null.Outermost header type of a packet. It's a 4 byte value, the 2 most significant bytes are the namespace and the next 2 bytes are the type.
- Returns:
Uint32
packetType, guaranteed to be non-null.- Throws:
NoSuchElementException
- if packetType is not present
-