If all field is specified, wildcards field should be lower than
(NW_DST_WILDCARD << 14 | NW_SRC_WILDCARD << 8), but the given
value of this test case is larger than this value.
So some test cases which check the wildcards field raise errors.
This patch fixes the wildcards parameter to the possible value.

Signed-off-by: IWASE Yusuke <[email protected]>
---
 ryu/tests/unit/ofproto/test_parser_v10.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ryu/tests/unit/ofproto/test_parser_v10.py 
b/ryu/tests/unit/ofproto/test_parser_v10.py
index a9c3d63..02ce69b 100644
--- a/ryu/tests/unit/ofproto/test_parser_v10.py
+++ b/ryu/tests/unit/ofproto/test_parser_v10.py
@@ -103,7 +103,7 @@ class TestOFPMatch(unittest.TestCase):
     # '!IH6s6sHBxHBB2xIIHH'...wildcards, in_port, dl_src, dl_dst, dl_vlan,
     #                         dl_vlan_pcp, dl_type, nw_tos, nw_proto,
     #                         nw_src, nw_dst, tp_src, tp_dst
-    wildcards = {'buf': b'\xd2\x71\x25\x23', 'val': 3530630435}
+    wildcards = {'buf': b'\x00\x02\x10\x00', 'val': 135168}
     in_port = {'buf': b'\x37\x8b', 'val': 14219}
     dl_src = {'buf': b'\x52\x54\x54\x10\x20\x99',
               'human': '52:54:54:10:20:99'}
-- 
1.9.1


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to