test_parser: Add test case for OXS related messages in OF1.5
TODO: Because Open vSwitch (lib/ofp-util) does not support Extensible Flow Entry Statistics [EXT-334] 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:
parent
317d3c4634
commit
d815eb0f17
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ryu/tests/packet_data/of15/libofproto-OFP15-flow_removed.packet
Normal file
BIN
ryu/tests/packet_data/of15/libofproto-OFP15-flow_removed.packet
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1,24 @@
|
||||
{
|
||||
"OFPAggregateStatsReply": {
|
||||
"body": {
|
||||
"OFPAggregateStats": {
|
||||
"length": 16,
|
||||
"stats": {
|
||||
"OFPStats": {
|
||||
"length": 12,
|
||||
"oxs_fields": [
|
||||
{
|
||||
"OXSTlv": {
|
||||
"field": "flow_count",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"flags": 0,
|
||||
"type": 2
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
{
|
||||
"OFPFlowDescStatsReply": {
|
||||
"body": [
|
||||
{
|
||||
"OFPFlowDesc": {
|
||||
"cookie": 1234605616436508552,
|
||||
"flags": 1,
|
||||
"hard_timeout": 255,
|
||||
"idle_timeout": 255,
|
||||
"importance": 43690,
|
||||
"instructions": [
|
||||
{
|
||||
"OFPInstructionGotoTable": {
|
||||
"len": 8,
|
||||
"table_id": 2,
|
||||
"type": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"length": 64,
|
||||
"match": {
|
||||
"OFPMatch": {
|
||||
"length": 12,
|
||||
"oxm_fields": [
|
||||
{
|
||||
"OXMTlv": {
|
||||
"field": "in_port",
|
||||
"mask": null,
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
},
|
||||
"priority": 5,
|
||||
"stats": {
|
||||
"OFPStats": {
|
||||
"length": 12,
|
||||
"oxs_fields": [
|
||||
{
|
||||
"OXSTlv": {
|
||||
"field": "flow_count",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"table_id": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"flags": 0,
|
||||
"type": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
{
|
||||
"OFPFlowDescStatsRequest": {
|
||||
"cookie": 1234605616436508552,
|
||||
"cookie_mask": 18446744073709551615,
|
||||
"flags": 0,
|
||||
"match": {
|
||||
"OFPMatch": {
|
||||
"length": 12,
|
||||
"oxm_fields": [
|
||||
{
|
||||
"OXMTlv": {
|
||||
"field": "in_port",
|
||||
"mask": null,
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
},
|
||||
"out_group": 4294967295,
|
||||
"out_port": 4294967295,
|
||||
"table_id": 1,
|
||||
"type": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"OFPFlowRemoved": {
|
||||
"cookie": 1234605616436508552,
|
||||
"hard_timeout": 255,
|
||||
"idle_timeout": 255,
|
||||
"match": {
|
||||
"OFPMatch": {
|
||||
"length": 12,
|
||||
"oxm_fields": [
|
||||
{
|
||||
"OXMTlv": {
|
||||
"field": "in_port",
|
||||
"mask": null,
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
},
|
||||
"priority": 1,
|
||||
"reason": 0,
|
||||
"stats": {
|
||||
"OFPStats": {
|
||||
"length": 12,
|
||||
"oxs_fields": [
|
||||
{
|
||||
"OXSTlv": {
|
||||
"field": "flow_count",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"table_id": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
{
|
||||
"OFPFlowStatsReply": {
|
||||
"body": [
|
||||
{
|
||||
"OFPFlowStats": {
|
||||
"length": 40,
|
||||
"match": {
|
||||
"OFPMatch": {
|
||||
"length": 12,
|
||||
"oxm_fields": [
|
||||
{
|
||||
"OXMTlv": {
|
||||
"field": "in_port",
|
||||
"mask": null,
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": 1
|
||||
}
|
||||
},
|
||||
"priority": 1,
|
||||
"reason": 0,
|
||||
"stats": {
|
||||
"OFPStats": {
|
||||
"length": 12,
|
||||
"oxs_fields": [
|
||||
{
|
||||
"OXSTlv": {
|
||||
"field": "flow_count",
|
||||
"value": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"table_id": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"flags": 0,
|
||||
"type": 17
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user