From d832509b38abb08d448ea07cd75320ab9daf9ad2 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 14 Aug 2013 14:06:28 +0900 Subject: [PATCH] of13: packet_data_generator: use set_field action Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- ryu/tests/packet_data_generator/src/x4.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ryu/tests/packet_data_generator/src/x4.erl b/ryu/tests/packet_data_generator/src/x4.erl index 154bfec3..c87dcb1c 100644 --- a/ryu/tests/packet_data_generator/src/x4.erl +++ b/ryu/tests/packet_data_generator/src/x4.erl @@ -54,7 +54,10 @@ x() -> instructions = [#ofp_instruction_write_actions{ actions = - [#ofp_action_output{port = 6,max_len = 65535}]}]}, + [#ofp_action_set_field{ + field = #ofp_field{name = vlan_vid, + value = <<1,2>> }}, + #ofp_action_output{port = 6,max_len = 65535}]}]}, #ofp_flow_mod{ cookie = <<0,0,0,0,0,0,0,0>>, cookie_mask = <<0,0,0,0,0,0,0,0>>,