Class PiPacketMetadata


  • @Beta
    public final class PiPacketMetadata
    extends java.lang.Object
    Instance of a metadata field for a controller packet-in/out for a protocol-independent pipeline. Metadata are used to carry information other than the packet-in/out payload, such as the original ingress port of a packet-in, or the egress port of packet-out.
    • Method Detail

      • id

        public PiPacketMetadataId id()
        Return the identifier of this packet metadata.
        Returns:
        packet metadata identifier
      • value

        public ImmutableByteSequence value()
        Returns the value for the field in this metadata.
        Returns:
        value
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object