ofproto_parser: pep8
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
committed by
FUJITA Tomonori
parent
95bfa7ad1d
commit
79a4cce08a
@@ -106,7 +106,8 @@ class MsgBase(object):
|
||||
if self.xid is None:
|
||||
self.xid = 0
|
||||
|
||||
struct.pack_into(self.datapath.ofproto.OFP_HEADER_PACK_STR, self.buf, 0,
|
||||
struct.pack_into(self.datapath.ofproto.OFP_HEADER_PACK_STR,
|
||||
self.buf, 0,
|
||||
self.version, self.msg_type, self.msg_len, self.xid)
|
||||
|
||||
def _serialize_body(self):
|
||||
@@ -132,6 +133,7 @@ def msg_pack_into(fmt, buf, offset, *args):
|
||||
|
||||
struct.pack_into(fmt, buf, offset, *args)
|
||||
|
||||
|
||||
def msg_str_attr(msg, buf, attr_list):
|
||||
for attr in attr_list:
|
||||
val = getattr(msg, attr, None)
|
||||
|
||||
Reference in New Issue
Block a user