of14: Add experimenter 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:18 +09:00 committed by FUJITA Tomonori
parent 974e4030c3
commit 9719958863
3 changed files with 40 additions and 1 deletions

View File

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

View File

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