of14: Add role status unit test

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Simon Horman 2014-02-24 13:07:13 +09:00 committed by FUJITA Tomonori
parent d27be429bc
commit 6dd0f63414
3 changed files with 37 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,36 @@
{
"OFPRoleStatus": {
"generation_id": 7,
"properties": [
{
"OFPRolePropExperimenter": {
"length": 12,
"type": 65535,
"exp_type": 0,
"experimenter": 101,
"data": []
}
},
{
"OFPRolePropExperimenter": {
"length": 16,
"type": 65535,
"exp_type": 1,
"experimenter": 101,
"data": [1]
}
},
{
"OFPRolePropExperimenter": {
"length": 20,
"type": 65535,
"exp_type": 2,
"experimenter": 101,
"data": [1, 2]
}
}
],
"reason": 0,
"role": 2
}
}

View File

@ -111,6 +111,7 @@ implemented = {
ofproto_v1_4.OFPT_GET_ASYNC_REQUEST: (False, True),
ofproto_v1_4.OFPT_GET_ASYNC_REPLY: (True, False),
ofproto_v1_4.OFPT_SET_ASYNC: (False, True),
ofproto_v1_4.OFPT_ROLE_STATUS: (True, False),
},
}