diff options
author | Yusuke Iwase <iwase.yusuke0@gmail.com> | 2015-10-06 16:48:43 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-11 21:51:38 +0900 |
commit | 85bb0128962398150e85ae4d0549147b0c2112c9 (patch) | |
tree | 2c738e5e6654c8f18bd3f5816edfd7fd77972133 | |
parent | 9663fbe5631492d28a0fcf643b6381c15ddbeb45 (diff) |
test_parser_v10: Fix wildcards param for unit test
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 <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/tests/unit/ofproto/test_parser_v10.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/tests/unit/ofproto/test_parser_v10.py b/ryu/tests/unit/ofproto/test_parser_v10.py index a9c3d639..02ce69ba 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'} |