summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2013-09-13 12:24:30 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-09-14 11:02:24 +0900
commitd53ec8412086ec12d300549544e08eb89c76fdf5 (patch)
treee4908c627a682344dc04a61fc10072efec52007c
parentd42f4e92e1476aeee5255282b48bb6f65a95b5f2 (diff)
tweak packet_data_generator
to reproduce a problem reported by Nitin Sharma on ryu-devel. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/packet_data_generator/src/x3.erl7
-rw-r--r--ryu/tests/packet_data_generator/src/x4.erl7
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>>,