diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-11-18 15:38:19 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-11-19 07:58:59 -0800 |
commit | 1a7c928bce3ce9d79c17522f1545de1fc65093c2 (patch) | |
tree | 00bcebcc4b2907abe7a78a2616cddd07c9db40d3 | |
parent | 0d1d8896d47738d9bb64130ed061e4925c584343 (diff) |
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>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 9c1d0fec..39a4e305 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -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', |