diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-09-26 10:28:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-09-27 02:43:33 +0900 |
commit | 239f4c7122f52e1b5622c55686da8b6e4e4ed9f9 (patch) | |
tree | 4c69c4f9f20cdf47f293930eddf76a3a9a733e12 | |
parent | 094a1da9891c7eb13686c2fa360bbfbf2f508dc8 (diff) |
of1.3: set default arguments for FlowStatsRequest
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_3_parser.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 3bd7e147..e8c11bac 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -3583,8 +3583,12 @@ class OFPFlowStatsRequest(OFPFlowStatsRequestBase): match) datapath.send_msg(req) """ - def __init__(self, datapath, flags, table_id, out_port, out_group, - cookie, cookie_mask, match, type_=None): + def __init__(self, datapath, flags=0, table_id=ofproto_v1_3.OFPTT_ALL, + out_port=ofproto_v1_3.OFPP_ANY, + out_group=ofproto_v1_3.OFPG_ANY, + cookie=0, cookie_mask=0, match=None, type_=None): + if match is None: + match = OFPMatch() super(OFPFlowStatsRequest, self).__init__(datapath, flags, table_id, out_port, out_group, cookie, cookie_mask, match) |