to reproduce a problem reported by Nitin Sharma on ryu-devel.

Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 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 4106590..a43c1ef 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 55b0182..07cab0f 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>>,
-- 
1.8.3.1


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to