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:
Simon Horman 2014-02-20 09:11:04 +09:00 committed by FUJITA Tomonori
parent 41b11296c4
commit 5b0bb7f6dd
4 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{
"OFPTableDescStatsRequest": {
"flags": 0,
"type": 14
}
}

View File

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