diff options
-rw-r--r-- | ryu/tests/packet_data/of14/5-22-ofp_port_mod.packet | bin | 64 -> 120 bytes | |||
-rw-r--r-- | ryu/tests/packet_data_generator/src/x5.erl | 14 | ||||
-rw-r--r-- | ryu/tests/unit/ofproto/json/of14/5-22-ofp_port_mod.packet.json | 27 |
3 files changed, 40 insertions, 1 deletions
diff --git a/ryu/tests/packet_data/of14/5-22-ofp_port_mod.packet b/ryu/tests/packet_data/of14/5-22-ofp_port_mod.packet Binary files differindex 9fb56651..2f733044 100644 --- a/ryu/tests/packet_data/of14/5-22-ofp_port_mod.packet +++ b/ryu/tests/packet_data/of14/5-22-ofp_port_mod.packet diff --git a/ryu/tests/packet_data_generator/src/x5.erl b/ryu/tests/packet_data_generator/src/x5.erl index 6918ba35..dbe9ee06 100644 --- a/ryu/tests/packet_data_generator/src/x5.erl +++ b/ryu/tests/packet_data_generator/src/x5.erl @@ -497,7 +497,19 @@ x() -> freq_lmda = 1500, fl_offset = 2000, grid_span = 3000, - tx_pwr = 300}]}, + tx_pwr = 300}, + #ofp_port_mod_prop_experimenter{ + experimenter = 101, + exp_type = 0, + data = <<>>}, + #ofp_port_mod_prop_experimenter{ + experimenter = 101, + exp_type = 1, + data = <<1:32>>}, + #ofp_port_mod_prop_experimenter{ + experimenter = 101, + exp_type = 2, + data = <<1:32,2:32>>}]}, #ofp_table_mod{ properties = [#ofp_table_mod_prop_eviction{flags = []}, diff --git a/ryu/tests/unit/ofproto/json/of14/5-22-ofp_port_mod.packet.json b/ryu/tests/unit/ofproto/json/of14/5-22-ofp_port_mod.packet.json index 1aa57127..4489d5e1 100644 --- a/ryu/tests/unit/ofproto/json/of14/5-22-ofp_port_mod.packet.json +++ b/ryu/tests/unit/ofproto/json/of14/5-22-ofp_port_mod.packet.json @@ -21,6 +21,33 @@ "grid_span": 3000, "tx_pwr": 300 } + }, + { + "OFPPortModPropExperimenter": { + "length": 12, + "type": 65535, + "exp_type": 0, + "experimenter": 101, + "data": [] + } + }, + { + "OFPPortModPropExperimenter": { + "length": 16, + "type": 65535, + "exp_type": 1, + "experimenter": 101, + "data": [1] + } + }, + { + "OFPPortModPropExperimenter": { + "length": 20, + "type": 65535, + "exp_type": 2, + "experimenter": 101, + "data": [1, 2] + } } ], "port_no": 1 |