mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 22:06:10 +02:00
of14: Add table desc unit tests
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
41b11296c4
commit
5b0bb7f6dd
BIN
ryu/tests/packet_data/of14/5-61-ofp_table_desc_request.packet
Normal file
BIN
ryu/tests/packet_data/of14/5-61-ofp_table_desc_request.packet
Normal file
Binary file not shown.
BIN
ryu/tests/packet_data/of14/5-62-ofp_table_desc_reply.packet
Normal file
BIN
ryu/tests/packet_data/of14/5-62-ofp_table_desc_reply.packet
Normal file
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
{
|
||||
"OFPTableDescStatsRequest": {
|
||||
"flags": 0,
|
||||
"type": 14
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
{
|
||||
"OFPTableDescStatsReply": {
|
||||
"body": [
|
||||
{
|
||||
"OFPTableDesc": {
|
||||
"config": 0,
|
||||
"length": 24,
|
||||
"properties": [
|
||||
{
|
||||
"OFPTableModPropExperimenter": {
|
||||
"length": 12,
|
||||
"type": 65535,
|
||||
"exp_type": 0,
|
||||
"experimenter": 101,
|
||||
"data": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"table_id": 7
|
||||
}
|
||||
},
|
||||
{
|
||||
"OFPTableDesc": {
|
||||
"config": 0,
|
||||
"length": 80,
|
||||
"properties": [
|
||||
{
|
||||
"OFPTableModPropEviction": {
|
||||
"flags": 0,
|
||||
"length": 8,
|
||||
"type": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"OFPTableModPropVacancy": {
|
||||
"length": 8,
|
||||
"type": 3,
|
||||
"vacancy": 0,
|
||||
"vacancy_down": 0,
|
||||
"vacancy_up": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"OFPTableModPropExperimenter": {
|
||||
"length": 12,
|
||||
"type": 65535,
|
||||
"exp_type": 0,
|
||||
"experimenter": 101,
|
||||
"data": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"OFPTableModPropExperimenter": {
|
||||
"length": 16,
|
||||
"type": 65535,
|
||||
"exp_type": 1,
|
||||
"experimenter": 101,
|
||||
"data": [1]
|
||||
}
|
||||
},
|
||||
{
|
||||
"OFPTableModPropExperimenter": {
|
||||
"length": 20,
|
||||
"type": 65535,
|
||||
"exp_type": 2,
|
||||
"experimenter": 101,
|
||||
"data": [1, 2]
|
||||
}
|
||||
}
|
||||
],
|
||||
"table_id": 8
|
||||
}
|
||||
}
|
||||
],
|
||||
"flags": 0,
|
||||
"type": 14
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user