of14: Add experimenter property to queue stats reply 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:
Simon Horman 2014-02-26 16:26:12 +09:00 committed by FUJITA Tomonori
parent 49079b4c8e
commit 808a1bfdf7
3 changed files with 44 additions and 3 deletions

View File

@ -582,7 +582,20 @@ x() ->
body =
[#ofp_queue_stats{
port_no = 7,queue_id = 1,tx_bytes = 0,tx_packets = 0,
tx_errors = 0},
tx_errors = 0,
properties =
[#ofp_queue_stats_prop_experimenter{
experimenter = 101,
exp_type = 0,
data = <<>>},
#ofp_queue_stats_prop_experimenter{
experimenter = 101,
exp_type = 1,
data = <<1:32>>},
#ofp_queue_stats_prop_experimenter{
experimenter = 101,
exp_type = 2,
data = <<1:32,2:32>>}]},
#ofp_queue_stats{
port_no = 6,queue_id = 1,tx_bytes = 0,tx_packets = 0,
tx_errors = 0},

View File

@ -5,9 +5,37 @@
"OFPQueueStats": {
"duration_nsec": 0,
"duration_sec": 0,
"length": 48,
"length": 104,
"port_no": 7,
"properties": [],
"properties": [
{
"OFPQueueStatsPropExperimenter": {
"length": 12,
"type": 65535,
"exp_type": 0,
"experimenter": 101,
"data": []
}
},
{
"OFPQueueStatsPropExperimenter": {
"length": 16,
"type": 65535,
"exp_type": 1,
"experimenter": 101,
"data": [1]
}
},
{
"OFPQueueStatsPropExperimenter": {
"length": 20,
"type": 65535,
"exp_type": 2,
"experimenter": 101,
"data": [1, 2]
}
}
],
"queue_id": 1,
"tx_bytes": 0,
"tx_errors": 0,