test_parser: Add test case for OFP15 controller connection status messages

TODO: Because Open vSwitch (lib/ofp-util) does not support
controller connection status messages [EXT-454] yet,
re-generate the packet data by using packet_data_generator2
when Open vSwitch supports it.

Reference: OpenFlow 1.1+ support status of Open vSwitch
https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.md

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:
Yusuke Iwase 2015-08-19 10:25:08 +09:00 committed by FUJITA Tomonori
parent 0d9dfe33de
commit 0841ac66ed
10 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{
"OFPControllerStatus": {
"status": {
"OFPControllerStatusStats": {
"channel_status": 1,
"length": 48,
"properties": [
{
"OFPControllerStatusPropUri": {
"length": 26,
"type": 0,
"uri": "tls:192.168.34.23:6653"
}
}
],
"reason": 1,
"role": 1,
"short_id": 65535
}
}
}
}

View File

@ -0,0 +1,26 @@
{
"OFPControllerStatusStatsReply": {
"body": [
{
"OFPControllerStatusStats": {
"channel_status": 1,
"length": 48,
"properties": [
{
"OFPControllerStatusPropUri": {
"length": 26,
"type": 0,
"uri": "tls:192.168.34.23:6653"
}
}
],
"reason": 1,
"role": 1,
"short_id": 65535
}
}
],
"flags": 0,
"type": 18
}
}

View File

@ -0,0 +1,6 @@
{
"OFPControllerStatusStatsRequest": {
"flags": 0,
"type": 18
}
}

View File

@ -0,0 +1,7 @@
{
"OFPRoleReply": {
"generation_id": 1234605616436508552,
"role": 1,
"short_id": 43690
}
}

View File

@ -0,0 +1,7 @@
{
"OFPRoleRequest": {
"generation_id": 1234605616436508552,
"role": 1,
"short_id": 43690
}
}