OpenFlow

OpenFlow

class os_ken.lib.packet.openflow.OFPUnparseableMsg(datapath, version, msg_type, msg_len, xid, body)

Unparseable OpenFlow message encoder class.

An instance has the following attributes at least.

Attribute Description
datapath A os_ken.ofproto.ofproto_protocol.ProtocolDesc instance for this message or None if OpenFlow protocol version is unsupported version.
version OpenFlow protocol version
msg_type Type of OpenFlow message
msg_len Length of the message
xid Transaction id
body OpenFlow body data

Note

"datapath" attribute is different from os_ken.controller.controller.Datapath. So you can not use "datapath" attribute to send OpenFlow messages. For example, "datapath" attribute does not have send_msg method.

class os_ken.lib.packet.openflow.openflow(msg)

OpenFlow message encoder/decoder class.

An instance has the following attributes at least.

Attribute Description
msg An instance of OpenFlow message (see OpenFlow protocol API Reference) or an instance of OFPUnparseableMsg if failed to parse packet as OpenFlow message.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.