mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-24 18:11:24 +01:00
of14: Add optical property to port status unit test
Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
7d0cff7044
commit
f03ff41186
Binary file not shown.
@ -602,7 +602,17 @@ x() ->
|
||||
advertised = [copper,autoneg],
|
||||
supported = ['100mb_fd',copper,autoneg],
|
||||
peer = ['100mb_fd',copper,autoneg],
|
||||
curr_speed = 5000,max_speed = 5000}]}
|
||||
curr_speed = 5000,max_speed = 5000},
|
||||
#ofp_port_desc_prop_optical{
|
||||
supported = [rx_tune],
|
||||
tx_min_freq_lmda = 1000,
|
||||
tx_max_freq_lmda = 2000,
|
||||
tx_grid_freq_lmda = 1500,
|
||||
rx_min_freq_lmda = 1000,
|
||||
rx_max_freq_lmda = 2000,
|
||||
rx_grid_freq_lmda = 1500,
|
||||
tx_pwr_min = 1000,
|
||||
tx_pwr_max = 2000}]}
|
||||
},
|
||||
#ofp_flow_removed{
|
||||
cookie = <<0,0,0,0,0,0,0,0>>,
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"OFPPort": {
|
||||
"config": 0,
|
||||
"hw_addr": "f2:0b:a4:d0:3f:70",
|
||||
"length": 72,
|
||||
"length": 112,
|
||||
"name": "\u79c1\u306e\u30dd\u30fc\u30c8",
|
||||
"port_no": 7,
|
||||
"properties": [
|
||||
@ -19,6 +19,21 @@
|
||||
"peer": 10248,
|
||||
"supported": 10248
|
||||
}
|
||||
},
|
||||
{
|
||||
"OFPPortDescPropOptical": {
|
||||
"length": 40,
|
||||
"type": 1,
|
||||
"rx_grid_freq_lmda": 1500,
|
||||
"rx_max_freq_lmda": 2000,
|
||||
"rx_min_freq_lmda": 1000,
|
||||
"supported": 1,
|
||||
"tx_grid_freq_lmda": 1500,
|
||||
"tx_max_freq_lmda": 2000,
|
||||
"tx_min_freq_lmda": 1000,
|
||||
"tx_pwr_max": 2000,
|
||||
"tx_pwr_min": 1000
|
||||
}
|
||||
}
|
||||
],
|
||||
"state": 4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user