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>
This commit is contained in:
YAMAMOTO Takashi 2013-09-13 12:24:30 +09:00 committed by FUJITA Tomonori
parent d42f4e92e1
commit d53ec84120
2 changed files with 12 additions and 2 deletions

View File

@ -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>>,

View File

@ -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>>,