public final class OVXMessageUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static OFMessage |
makeError(OFError.OFBadActionCode code,
OFMessage msg)
Makes an OpenFlow error message for a bad action and
given OpenFlow message.
|
static OFMessage |
makeErrorMsg(OFError.OFBadRequestCode code,
OFMessage msg)
Makes an OpenFlow error message for a bad request and
given OpenFlow message.
|
static OFMessage |
makeErrorMsg(OFError.OFFlowModFailedCode code,
OFMessage msg)
Makes an OpenFlow error message for a failed flow mod and
given OpenFlow message.
|
static OFMessage |
makeErrorMsg(OFError.OFPortModFailedCode code,
OFMessage msg)
Makes an OpenFlow error message for a failed port mod and
given OpenFlow message.
|
static OVXSwitch |
translateXid(OFMessage msg,
OVXPort inPort)
Xid translation based on port for "accurate" translation with a specific
PhysicalSwitch.
|
static Integer |
translateXid(OFMessage msg,
OVXSwitch vsw)
Xid translation based on OVXSwitch, for cases where port cannot be
determined.
|
static void |
translateXidAndSend(OFMessage msg,
OVXPort inPort)
Translates the Xid of a PhysicalSwitch-bound message and sends it there.
|
static void |
translateXidAndSend(OFMessage msg,
OVXSwitch vsw)
Translates the Xid of a PhysicalSwitch-bound message and sends it there.
|
static OVXSwitch |
untranslateXid(OFMessage msg,
PhysicalSwitch psw)
Undoes the XID translation and returns the original virtual switch.
|
static void |
untranslateXidAndSend(OFMessage msg,
PhysicalSwitch psw)
Undoes the Xid translation and tries to send the resulting message to the
origin OVXSwitch.
|
public static OFMessage makeError(OFError.OFBadActionCode code, OFMessage msg)
code - the bad action codemsg - the OpenFlow messagepublic static OFMessage makeErrorMsg(OFError.OFFlowModFailedCode code, OFMessage msg)
code - the failed flow mod codemsg - the OpenFlow messagepublic static OFMessage makeErrorMsg(OFError.OFPortModFailedCode code, OFMessage msg)
code - the failed port mod codemsg - the OpenFlow messagepublic static OFMessage makeErrorMsg(OFError.OFBadRequestCode code, OFMessage msg)
code - the bad request codemsg - the OpenFlow messagepublic static OVXSwitch translateXid(OFMessage msg, OVXPort inPort)
msg - the OpenFlow messageinPort - the virtual input port instancepublic static Integer translateXid(OFMessage msg, OVXSwitch vsw)
msg - the OpenFlow messagevsw - the virtual switch instancepublic static void translateXidAndSend(OFMessage msg, OVXPort inPort)
msg - the OpenFlow messageinPort - the virtual input port instancepublic static void translateXidAndSend(OFMessage msg, OVXSwitch vsw)
msg - the OpenFlow messagevsw - the virtual switch instancepublic static OVXSwitch untranslateXid(OFMessage msg, PhysicalSwitch psw)
msg - the OpenFlow messagepsw - the physical switchpublic static void untranslateXidAndSend(OFMessage msg, PhysicalSwitch psw)
msg - the OpenFlow messagepsw - the physical switchCopyright © 2015. All rights reserved.