OpenFlow¶
-
class
ryu.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 ryu.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 ryu.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
ryu.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.