of13: set ActionOutput default max_len to zero

same as of10.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2013-08-23 07:08:53 +09:00
parent 3553e7ec6c
commit 19445e20f2

View File

@ -2015,7 +2015,7 @@ class OFPAction(OFPActionHeader):
@OFPAction.register_action_type(ofproto_v1_3.OFPAT_OUTPUT,
ofproto_v1_3.OFP_ACTION_OUTPUT_SIZE)
class OFPActionOutput(OFPAction):
def __init__(self, port, max_len):
def __init__(self, port, max_len=0):
super(OFPActionOutput, self).__init__()
self.port = port
self.max_len = max_len