From d53ec8412086ec12d300549544e08eb89c76fdf5 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Sep 2013 12:24:30 +0900 Subject: [PATCH] tweak packet_data_generator to reproduce a problem reported by Nitin Sharma on ryu-devel. Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- ryu/tests/packet_data_generator/src/x3.erl | 7 ++++++- ryu/tests/packet_data_generator/src/x4.erl | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ryu/tests/packet_data_generator/src/x3.erl b/ryu/tests/packet_data_generator/src/x3.erl index 0ac6f2df..7cfc12ca 100644 --- a/ryu/tests/packet_data_generator/src/x3.erl +++ b/ryu/tests/packet_data_generator/src/x3.erl @@ -57,7 +57,12 @@ x() -> [#ofp_action_set_field{ field = #ofp_field{name = vlan_vid, value = <<1,2>> }}, - #ofp_action_output{port = 6,max_len = no_buffer}]}]}, + #ofp_action_output{port = 6,max_len = no_buffer}]}, + #ofp_instruction_apply_actions{ + actions = + [#ofp_action_set_field{ + field = #ofp_field{name = eth_src, + value = <<1,2,3,4,5,6>> }}]}]}, #ofp_flow_mod{ cookie = <<0,0,0,0,0,0,0,0>>, cookie_mask = <<0,0,0,0,0,0,0,0>>, diff --git a/ryu/tests/packet_data_generator/src/x4.erl b/ryu/tests/packet_data_generator/src/x4.erl index 86694dd1..b3891716 100644 --- a/ryu/tests/packet_data_generator/src/x4.erl +++ b/ryu/tests/packet_data_generator/src/x4.erl @@ -57,7 +57,12 @@ x() -> [#ofp_action_set_field{ field = #ofp_field{name = vlan_vid, value = <<1,2>> }}, - #ofp_action_output{port = 6,max_len = no_buffer}]}]}, + #ofp_action_output{port = 6,max_len = no_buffer}]}, + #ofp_instruction_apply_actions{ + actions = + [#ofp_action_set_field{ + field = #ofp_field{name = eth_src, + value = <<1,2,3,4,5,6>> }}]}]}, #ofp_flow_mod{ cookie = <<0,0,0,0,0,0,0,0>>, cookie_mask = <<0,0,0,0,0,0,0,0>>,