mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
of12: implment OFPT_EXPERIMENTER serializer
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
0d1d8896d4
commit
1a7c928bce
@ -296,6 +296,13 @@ class OFPExperimenter(MsgBase):
|
||||
|
||||
return msg
|
||||
|
||||
def _serialize_body(self):
|
||||
assert self.data is not None
|
||||
msg_pack_into(ofproto_v1_2.OFP_EXPERIMENTER_HEADER_PACK_STR,
|
||||
self.buf, ofproto_v1_2.OFP_HEADER_SIZE,
|
||||
self.experimenter, self.exp_type)
|
||||
self.buf += self.data
|
||||
|
||||
|
||||
class OFPPort(ofproto_parser.namedtuple('OFPPort', (
|
||||
'port_no', 'hw_addr', 'name', 'config', 'state', 'curr',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user