Signed-off-by: Simon Horman <[email protected]>
---
v3
* First post
---
ryu/tests/packet_data/of14/5-22-ofp_port_mod.packet | Bin 40 -> 64 bytes
ryu/tests/packet_data_generator/src/x5.erl | 8 +++++++-
.../unit/ofproto/json/of14/5-22-ofp_port_mod.packet.json | 11 +++++++++++
3 files changed, 18 insertions(+), 1 deletion(-)
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
index
9cb5a590d8ecb02ff5a84dd4b440cb21242f301e..9fb56651cef802300d116b76340cd6db55074619
100644
GIT binary patch
delta 35
qcmdOJU||(taG1!VBEi7OAi==Ez|6qFdWV65{Q?66_YMXIMjZf12?SRF
literal 40
ccmZP-V9;QI07ft+$iN^7#7KaHfkA))01c}EiU0rr
diff --git a/ryu/tests/packet_data_generator/src/x5.erl
b/ryu/tests/packet_data_generator/src/x5.erl
index de3af57..308648e 100644
--- a/ryu/tests/packet_data_generator/src/x5.erl
+++ b/ryu/tests/packet_data_generator/src/x5.erl
@@ -488,7 +488,13 @@ x() ->
#ofp_port_mod{port_no = 1, hw_addr = <<0,17,0,0,17,17>>,
config = [],mask = [],
properties =
- [#ofp_port_mod_prop_ethernet{advertise = [fiber]}]},
+ [#ofp_port_mod_prop_ethernet{advertise = [fiber]},
+ #ofp_port_mod_prop_optical{
+ configure = [rx_tune, tx_tune],
+ freq_lmda = 1500,
+ fl_offset = 2000,
+ grid_span = 3000,
+ tx_pwr = 300}]},
#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 ce0f13b..1aa5712 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
@@ -10,6 +10,17 @@
"length": 8,
"advertise": 4096
}
+ },
+ {
+ "OFPPortModPropOptical": {
+ "length": 24,
+ "type": 1,
+ "configure": 3,
+ "freq_lmda": 1500,
+ "fl_offset": 2000,
+ "grid_span": 3000,
+ "tx_pwr": 300
+ }
}
],
"port_no": 1
--
1.8.5.2
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel