diff options
-rw-r--r-- | ryu/tests/integrated/test_add_flow_v12_actions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ryu/tests/integrated/test_add_flow_v12_actions.py b/ryu/tests/integrated/test_add_flow_v12_actions.py index ad953c45..99cc1d78 100644 --- a/ryu/tests/integrated/test_add_flow_v12_actions.py +++ b/ryu/tests/integrated/test_add_flow_v12_actions.py @@ -172,7 +172,10 @@ class RunTest(tester.TestFlowBase): field = dp.ofproto.OXM_OF_VLAN_VID value = 0x1e4 - self.add_set_field_action(dp, field, value) + match = dp.ofproto_parser.OFPMatch() + match.set_vlan_vid(1) + + self.add_set_field_action(dp, field, value, match) def test_action_set_field_vlan_pcp(self, dp): field = dp.ofproto.OXM_OF_VLAN_PCP |