test_parser: Add test case for OFPQueuePropExperimenter
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
742644a21d
commit
0d64e7f890
Binary file not shown.
@ -565,13 +565,25 @@ x() ->
|
|||||||
#ofp_packet_queue{queue_id = 99, port_no = 77,
|
#ofp_packet_queue{queue_id = 99, port_no = 77,
|
||||||
properties = [
|
properties = [
|
||||||
#ofp_queue_prop_min_rate{rate = 10},
|
#ofp_queue_prop_min_rate{rate = 10},
|
||||||
#ofp_queue_prop_max_rate{rate = 900}
|
#ofp_queue_prop_max_rate{rate = 900},
|
||||||
|
#ofp_queue_prop_experimenter{experimenter = 999,
|
||||||
|
data = <<>>}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
#ofp_packet_queue{queue_id = 88, port_no = 77,
|
#ofp_packet_queue{queue_id = 88, port_no = 77,
|
||||||
properties = [
|
properties = [
|
||||||
#ofp_queue_prop_min_rate{rate = 100},
|
#ofp_queue_prop_min_rate{rate = 100},
|
||||||
#ofp_queue_prop_max_rate{rate = 200}
|
#ofp_queue_prop_max_rate{rate = 200},
|
||||||
|
#ofp_queue_prop_experimenter{experimenter = 999,
|
||||||
|
data = <<1:8>>}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
#ofp_packet_queue{queue_id = 77, port_no = 77,
|
||||||
|
properties = [
|
||||||
|
#ofp_queue_prop_min_rate{rate = 200},
|
||||||
|
#ofp_queue_prop_max_rate{rate = 400},
|
||||||
|
#ofp_queue_prop_experimenter{experimenter = 999,
|
||||||
|
data = <<1:8,2:8>>}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]},
|
]},
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"queues": [
|
"queues": [
|
||||||
{
|
{
|
||||||
"OFPPacketQueue": {
|
"OFPPacketQueue": {
|
||||||
"len": 48,
|
"len": 64,
|
||||||
"port": 77,
|
"port": 77,
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
@ -20,6 +20,14 @@
|
|||||||
"property": 2,
|
"property": 2,
|
||||||
"rate": 900
|
"rate": 900
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"OFPQueuePropExperimenter": {
|
||||||
|
"data": [],
|
||||||
|
"experimenter": 999,
|
||||||
|
"len": 16,
|
||||||
|
"property": 65535
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"queue_id": 99
|
"queue_id": 99
|
||||||
@ -27,7 +35,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"OFPPacketQueue": {
|
"OFPPacketQueue": {
|
||||||
"len": 48,
|
"len": 65,
|
||||||
"port": 77,
|
"port": 77,
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
@ -43,10 +51,54 @@
|
|||||||
"property": 2,
|
"property": 2,
|
||||||
"rate": 200
|
"rate": 200
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"OFPQueuePropExperimenter": {
|
||||||
|
"experimenter": 999,
|
||||||
|
"data": [
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"len": 17,
|
||||||
|
"property": 65535
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"queue_id": 88
|
"queue_id": 88
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"OFPPacketQueue": {
|
||||||
|
"len": 66,
|
||||||
|
"port": 77,
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"OFPQueuePropMinRate": {
|
||||||
|
"len": 16,
|
||||||
|
"property": 1,
|
||||||
|
"rate": 200
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"OFPQueuePropMaxRate": {
|
||||||
|
"len": 16,
|
||||||
|
"property": 2,
|
||||||
|
"rate": 400
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"OFPQueuePropExperimenter": {
|
||||||
|
"experimenter": 999,
|
||||||
|
"data": [
|
||||||
|
1,
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"len": 18,
|
||||||
|
"property": 65535
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"queue_id": 77
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user