Package org.onosproject.net.pi.model
Interface PiPacketMetadataModel
-
@Beta public interface PiPacketMetadataModelModel of a packet metadata for a protocol-independent pipeline.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intbitWidth()Returns the size in bits of this metadata.booleanhasBitWidth()Return true is the packet metadata has a fixed bit width.PiPacketMetadataIdid()Returns the ID of this packet metadata.
-
-
-
Method Detail
-
id
PiPacketMetadataId id()
Returns the ID of this packet metadata.- Returns:
- packet operation metadata ID
-
bitWidth
int bitWidth()
Returns the size in bits of this metadata.- Returns:
- size in bit
-
hasBitWidth
boolean hasBitWidth()
Return true is the packet metadata has a fixed bit width. It returns false if it can have flexible bit width.- Returns:
- True if the packet metadata has fixed bit width, false otherwise
-
-