diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-11-20 15:48:31 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-11-20 05:44:37 -0800 |
commit | 65e94f2c0607aa57a6e34d275ee5ca56676f0e5a (patch) | |
tree | 70b5f21bd653ad6d24625492405cde87fec97269 | |
parent | 36cc424442ffc918dd884dc5aeb124eb86aad001 (diff) |
packet_data_generator: add a case for EXT-256 (PBB UCA match field)
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/x4.erl | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/ryu/tests/packet_data_generator/src/x4.erl b/ryu/tests/packet_data_generator/src/x4.erl index 7facfb19..ba61c9c5 100644 --- a/ryu/tests/packet_data_generator/src/x4.erl +++ b/ryu/tests/packet_data_generator/src/x4.erl @@ -202,6 +202,11 @@ x() -> class = openflow_basic,name = ipv6_exthdr, has_mask = false, value = <<500:9>>, + mask = undefined}, + #ofp_field{ + class = {experimenter, onf},name = pbb_uca, + has_mask = false, + value = <<1:1>>, mask = undefined} ], List = [ @@ -260,7 +265,11 @@ x() -> actions = [#ofp_action_set_field{ field = #ofp_field{name = eth_src, - value = <<1,2,3,4,5,6>> }}]}]}, + value = <<1,2,3,4,5,6>> }}, + #ofp_action_set_field{ + field = #ofp_field{class = {experimenter, onf}, + name = pbb_uca, + value = <<1:1>> }}]}]}, #ofp_flow_mod{ cookie = <<0,0,0,0,0,0,0,0>>, cookie_mask = <<0,0,0,0,0,0,0,0>>, @@ -411,6 +420,39 @@ x() -> instructions = [#ofp_instruction_write_actions{ actions = + [#ofp_action_set_field{ + field = #ofp_field{name = vlan_vid, + value = <<258:13>> }}, + #ofp_action_copy_ttl_out{}, + #ofp_action_copy_ttl_in{}, + #ofp_action_copy_ttl_in{}, + #ofp_action_pop_pbb{}, + #ofp_action_push_pbb{ethertype = 16#1234}, + #ofp_action_pop_mpls{ethertype= 16#9876}, + #ofp_action_push_mpls{ethertype = 16#8847}, + #ofp_action_pop_vlan{}, + #ofp_action_push_vlan{ethertype = 16#8100}, + #ofp_action_dec_mpls_ttl{}, + #ofp_action_set_mpls_ttl{mpls_ttl = 10}, + #ofp_action_dec_nw_ttl{}, + #ofp_action_set_nw_ttl{nw_ttl = 10}, + #ofp_action_set_queue{queue_id = 3}, + #ofp_action_group{group_id = 99}, + #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_action_set_field{ + field = #ofp_field{class = {experimenter, + onf}, + name = pbb_uca, + value = <<1:1>> }}]}, + #ofp_instruction_write_actions{ + actions = [#ofp_action_output{ port = controller, max_len = no_buffer}]}]}]}, |