Interface PacketTypeFields
-
- All Superinterfaces:
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; } }
The schema path to identify an instance is opendaylight-match-typespacket-type-fields
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.opendaylight.yangtools.yang.common.Uint32
getPacketType()
Return packetType, ornull
if it is not present.Class<? extends PacketTypeFields>
implementedInterface()
default @NonNull org.opendaylight.yangtools.yang.common.Uint32
requirePacketType()
Return packetType, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends PacketTypeFields> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.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
-
-