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()
A patch is provided as follows.
diff --git a/ryu/lib/ofctl_v1_0.py b/ryu/lib/ofctl_v1_0.py
index 015f36a..4d52c63 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}
Best regards,
Charles M.C. Chan 詹珉誠
Wireless Internet Laboratory
D-Link NCTU Joint Research Center
National Chiao Tung University, Taiwan
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel