From f0ab847f64a2d2f9d96d66c2b546ff26e55323a6 Mon Sep 17 00:00:00 2001 From: "Charles M.C. Chan" Date: Sat, 25 Oct 2014 14:55:47 +0800 Subject: [PATCH] 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 --- ryu/lib/ofctl_v1_0.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ryu/lib/ofctl_v1_0.py b/ryu/lib/ofctl_v1_0.py index 015f36a92..4d52c6379 100644 --- a/ryu/lib/ofctl_v1_0.py +++ b/ryu/lib/ofctl_v1_0.py @@ -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}