public class OfmExperimenter extends OpenflowMessage
This class also represents the Vendor message that was introduced at version 1.0, and then replaced with this Experimenter message starting with version 1.1. The Vender field from the OpenFlow 1.0 specification is mapped to the Experimenter Id, which was introduced in the 1.1 specification. The arbitrary data byte array is common across all version.
The experimenter id uniquely identifies the experimenter. If the most significant byte is zero, the next three bytes are the experimenter's IEEE OUI. If the most significant byte is not zero, it is a value allocated by the Open Networking Foundation.
The rest of the body for this message is uninterpreted by standard OpenFlow processing and is arbitrarily defined by the corresponding experimenter.
If a switch does not understand an experimenter extension, it must send an OFPT_ERROR message with a OFPBRC_BAD_EXPERIMENTER error code and OFPET_BAD_REQUEST error type.
length
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Returns a copy of the experimenter-defined additional data.
|
ExperimenterId |
getExpId()
Returns the experimenter ID (if we know it); null otherwise; Since 1.0.
|
int |
getExpType()
Returns the experimenter-defined type; Since 1.2.
|
int |
getId()
Returns the experimenter ID encoded as an int; Since 1.0.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toString() |
decodeHeader, getType, getVersion, getXid, hex, hex, length, validate
public String toString()
toString
in class OpenflowMessage
public String toDebugString()
OpenflowMessage
OpenflowMessage.toString()
, but
subclasses are free to override this behavior.toDebugString
in interface Structure
toDebugString
in class OpenflowMessage
public int getId()
public ExperimenterId getExpId()
public int getExpType()
public byte[] getData()
Copyright © 2015. All Rights Reserved.