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>
This commit is contained in:
FUJITA Tomonori 2012-07-31 09:35:16 +09:00
parent 89b5f3c5d0
commit 254db170ec

View File

@ -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)