diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status.packet new file mode 100644 index 00000000..9b63794e Binary files /dev/null and b/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status.packet differ diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status_reply.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status_reply.packet new file mode 100644 index 00000000..e859f9b0 Binary files /dev/null and b/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status_reply.packet differ diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status_request.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status_request.packet new file mode 100644 index 00000000..4c741757 Binary files /dev/null and b/ryu/tests/packet_data/of15/libofproto-OFP15-controller_status_request.packet differ diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-role_reply.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-role_reply.packet new file mode 100644 index 00000000..c92ba974 Binary files /dev/null and b/ryu/tests/packet_data/of15/libofproto-OFP15-role_reply.packet differ diff --git a/ryu/tests/packet_data/of15/libofproto-OFP15-role_request.packet b/ryu/tests/packet_data/of15/libofproto-OFP15-role_request.packet new file mode 100644 index 00000000..82c99197 Binary files /dev/null and b/ryu/tests/packet_data/of15/libofproto-OFP15-role_request.packet differ diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status.packet.json new file mode 100644 index 00000000..d9a74bfe --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status.packet.json @@ -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 + } + } + } +} diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status_reply.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status_reply.packet.json new file mode 100644 index 00000000..002f0f1d --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status_reply.packet.json @@ -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 + } +} diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status_request.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status_request.packet.json new file mode 100644 index 00000000..d9a8ef8b --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-controller_status_request.packet.json @@ -0,0 +1,6 @@ +{ + "OFPControllerStatusStatsRequest": { + "flags": 0, + "type": 18 + } +} diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-role_reply.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-role_reply.packet.json new file mode 100644 index 00000000..e8be5895 --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-role_reply.packet.json @@ -0,0 +1,7 @@ +{ + "OFPRoleReply": { + "generation_id": 1234605616436508552, + "role": 1, + "short_id": 43690 + } +} diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-role_request.packet.json b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-role_request.packet.json new file mode 100644 index 00000000..c0c120f6 --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-role_request.packet.json @@ -0,0 +1,7 @@ +{ + "OFPRoleRequest": { + "generation_id": 1234605616436508552, + "role": 1, + "short_id": 43690 + } +}