mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 22:06:10 +02:00
of1.2: fix OFPSetConfig default arguments
If you use initialize like the following way: OFPSetConfig(dp, miss_send_len=1600) You get the following assertion when it's serialized: File "/Users/fujita/git/ryu/ryu/ofproto/ofproto_v1_2_parser.py", line 244, in _serialize_body assert self.flags is not None Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
8ab425f4ae
commit
3d9014733c
@ -235,7 +235,7 @@ class OFPGetConfigReply(MsgBase):
|
||||
|
||||
@_set_msg_type(ofproto_v1_2.OFPT_SET_CONFIG)
|
||||
class OFPSetConfig(MsgBase):
|
||||
def __init__(self, datapath, flags=None, miss_send_len=None):
|
||||
def __init__(self, datapath, flags=0, miss_send_len=0):
|
||||
super(OFPSetConfig, self).__init__(datapath)
|
||||
self.flags = flags
|
||||
self.miss_send_len = miss_send_len
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user