ofctl_v1_0: match_to_str() does not convert nw_tos correctly

The match_to_str() function in ryu/lib/ofctl_v1_0.py does not convert
nw_tos correctly.  As a result, we cannot obtain nw_tos value of any
flow entry by invoking get_flow_stats()

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Charles M.C. Chan 2014-10-25 14:55:47 +08:00 committed by FUJITA Tomonori
parent bac1f3038d
commit f0ab847f64

View File

@ -167,6 +167,7 @@ def match_to_str(m):
'in_port': m.in_port,
'nw_dst': nw_dst_to_str(m.wildcards, m.nw_dst),
'nw_proto': m.nw_proto,
'nw_tos': m.nw_tos,
'nw_src': nw_src_to_str(m.wildcards, m.nw_src),
'tp_src': m.tp_src,
'tp_dst': m.tp_dst}