of14: Add optical property to port mod reply unit test

Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
Simon Horman 2014-02-27 17:56:16 +09:00 committed by FUJITA Tomonori
parent 55b89f0bd8
commit 6e2f80e2d7
3 changed files with 18 additions and 1 deletions

View File

@ -491,7 +491,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 = []},

View File

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