diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-31 09:35:16 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-31 13:26:17 +0900 |
commit | 254db170eca319a9881a837eb101f56de87e96c7 (patch) | |
tree | 1bbf158fc0a1622a7f6026accc175572f2d8802d | |
parent | 89b5f3c5d083e5475cfd06a99b941eb2465b765e (diff) |
test: fix SET_NW_TOS action in test_add_flow_v10
The lowest two bits must be zero.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reviewed-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | ryu/tests/integrated/test_add_flow_v10.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/tests/integrated/test_add_flow_v10.py b/ryu/tests/integrated/test_add_flow_v10.py index 1014596c..e3910ecf 100644 --- a/ryu/tests/integrated/test_add_flow_v10.py +++ b/ryu/tests/integrated/test_add_flow_v10.py @@ -176,7 +176,8 @@ class RunTest(tester.TestFlowBase): self.add_action(dp, [action, ]) def test_action_set_nw_tos(self, dp): - nw_tos = 111 + # lowest two bits must be zero + nw_tos = 1 << 2 self._verify = [dp.ofproto.OFPAT_SET_NW_TOS, 'tos', nw_tos] action = dp.ofproto_parser.OFPActionSetNwTos(nw_tos) |