test_parser: Add tests generated by packet_data_generator3

This includes tests for recently added nicira extensions.

Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
IWAMOTO Toshihiro 2015-08-11 11:32:09 +09:00 committed by FUJITA Tomonori
parent ea85625f63
commit d71d84fe08
14 changed files with 636 additions and 0 deletions

View File

@ -0,0 +1,101 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 1,
"cookie": 1311768467463790320,
"cookie_mask": 18446744073709551615,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"NXActionConjunction": {
"clause": 0,
"experimenter": 8992,
"id": 11259375,
"len": 16,
"n_clauses": 2,
"subtype": 34,
"type": 65535
}
}
],
"len": 24,
"type": 4
}
}
],
"match": {
"OFPMatch": {
"length": 70,
"oxm_fields": [
{
"OXMTlv": {
"field": "in_port",
"mask": null,
"value": 43981
}
},
{
"OXMTlv": {
"field": "eth_dst",
"mask": null,
"value": "aa:bb:cc:99:88:77"
}
},
{
"OXMTlv": {
"field": "eth_type",
"mask": null,
"value": 2048
}
},
{
"OXMTlv": {
"field": "vlan_vid",
"mask": null,
"value": 5095
}
},
{
"OXMTlv": {
"field": "ipv4_dst",
"mask": null,
"value": "192.168.2.1"
}
},
{
"OXMTlv": {
"field": "tunnel_id",
"mask": null,
"value": 50000
}
},
{
"OXMTlv": {
"field": "tun_ipv4_src",
"mask": null,
"value": "192.168.2.3"
}
},
{
"OXMTlv": {
"field": "tun_ipv4_dst",
"mask": null,
"value": "192.168.2.4"
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 2,
"xid": 2
}
}

View File

@ -0,0 +1,191 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 0,
"cookie": 0,
"cookie_mask": 0,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"OFPActionPopVlan": {
"len": 8,
"type": 18
}
},
{
"OFPActionSetField": {
"field": {
"OXMTlv": {
"field": "ipv4_dst",
"mask": null,
"value": "192.168.2.9"
}
}
}
},
{
"NXActionLearn": {
"cookie": 0,
"experimenter": 8992,
"fin_hard_timeout": 0,
"fin_idle_timeout": 0,
"flags": 0,
"hard_timeout": 300,
"idle_timeout": 0,
"len": 96,
"priority": 1,
"specs": [
{
"NXFlowSpecMatch": {
"dst": [
"vlan_vid",
0
],
"n_bits": 12,
"src": [
"vlan_vid",
0
]
}
},
{
"NXFlowSpecMatch": {
"dst": [
"eth_dst_nxm",
0
],
"n_bits": 48,
"src": [
"eth_src_nxm",
0
]
}
},
{
"NXFlowSpecLoad": {
"dst": [
"vlan_vid",
0
],
"n_bits": 12,
"src": 0
}
},
{
"NXFlowSpecLoad": {
"dst": [
"tunnel_id_nxm",
0
],
"n_bits": 64,
"src": [
"tunnel_id_nxm",
0
]
}
},
{
"NXFlowSpecOutput": {
"dst": "",
"n_bits": 32,
"src": [
"in_port",
0
]
}
}
],
"subtype": 16,
"table_id": 99,
"type": 65535
}
}
],
"len": 128,
"type": 4
}
},
{
"OFPInstructionGotoTable": {
"len": 8,
"table_id": 100,
"type": 1
}
}
],
"match": {
"OFPMatch": {
"length": 70,
"oxm_fields": [
{
"OXMTlv": {
"field": "in_port",
"mask": null,
"value": 43981
}
},
{
"OXMTlv": {
"field": "eth_dst",
"mask": null,
"value": "aa:bb:cc:99:88:77"
}
},
{
"OXMTlv": {
"field": "eth_type",
"mask": null,
"value": 2048
}
},
{
"OXMTlv": {
"field": "vlan_vid",
"mask": null,
"value": 5095
}
},
{
"OXMTlv": {
"field": "ipv4_dst",
"mask": null,
"value": "192.168.2.1"
}
},
{
"OXMTlv": {
"field": "tunnel_id",
"mask": null,
"value": 50000
}
},
{
"OXMTlv": {
"field": "tun_ipv4_src",
"mask": null,
"value": "192.168.2.3"
}
},
{
"OXMTlv": {
"field": "tun_ipv4_dst",
"mask": null,
"value": "192.168.2.4"
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 2,
"xid": 2
}
}

View File

@ -0,0 +1,100 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 0,
"cookie": 0,
"cookie_mask": 0,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"NXActionResubmitTable": {
"experimenter": 8992,
"in_port": 1234,
"len": 16,
"subtype": 14,
"table_id": 99,
"type": 65535
}
}
],
"len": 24,
"type": 4
}
}
],
"match": {
"OFPMatch": {
"length": 70,
"oxm_fields": [
{
"OXMTlv": {
"field": "in_port",
"mask": null,
"value": 43981
}
},
{
"OXMTlv": {
"field": "eth_dst",
"mask": null,
"value": "aa:bb:cc:99:88:77"
}
},
{
"OXMTlv": {
"field": "eth_type",
"mask": null,
"value": 2048
}
},
{
"OXMTlv": {
"field": "vlan_vid",
"mask": null,
"value": 5095
}
},
{
"OXMTlv": {
"field": "ipv4_dst",
"mask": null,
"value": "192.168.2.1"
}
},
{
"OXMTlv": {
"field": "tunnel_id",
"mask": null,
"value": 50000
}
},
{
"OXMTlv": {
"field": "tun_ipv4_src",
"mask": null,
"value": "192.168.2.3"
}
},
{
"OXMTlv": {
"field": "tun_ipv4_dst",
"mask": null,
"value": "192.168.2.4"
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 3,
"xid": 2
}
}

View File

@ -0,0 +1,61 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 1,
"cookie": 1311768467463790320,
"cookie_mask": 18446744073709551615,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"OFPActionPopVlan": {
"len": 8,
"type": 18
}
}
],
"len": 16,
"type": 4
}
},
{
"OFPInstructionGotoTable": {
"len": 8,
"table_id": 100,
"type": 1
}
}
],
"match": {
"OFPMatch": {
"length": 18,
"oxm_fields": [
{
"OXMTlv": {
"field": "conj_id",
"mask": null,
"value": 11259375
}
},
{
"OXMTlv": {
"field": "vlan_vid",
"mask": null,
"value": 5330
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 3,
"xid": 2
}
}

View File

@ -0,0 +1,61 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 1,
"cookie": 1311768467463790320,
"cookie_mask": 18446744073709551615,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"NXActionRegMove": {
"dst_field": "reg1",
"dst_ofs": 0,
"experimenter": 8992,
"len": 24,
"n_bits": 6,
"src_field": "reg0",
"src_ofs": 10,
"subtype": 6,
"type": 65535
}
}
],
"len": 32,
"type": 4
}
}
],
"match": {
"OFPMatch": {
"length": 24,
"oxm_fields": [
{
"OXMTlv": {
"field": "reg0",
"mask": null,
"value": 4660
}
},
{
"OXMTlv": {
"field": "reg5",
"mask": 65535,
"value": 43981
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 3,
"xid": 2
}
}

View File

@ -0,0 +1,61 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 1,
"cookie": 1311768467463790320,
"cookie_mask": 18446744073709551615,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"OFPActionPopVlan": {
"len": 8,
"type": 18
}
}
],
"len": 16,
"type": 4
}
},
{
"OFPInstructionGotoTable": {
"len": 8,
"table_id": 100,
"type": 1
}
}
],
"match": {
"OFPMatch": {
"length": 18,
"oxm_fields": [
{
"OXMTlv": {
"field": "vlan_vid",
"mask": null,
"value": 5330
}
},
{
"OXMTlv": {
"field": "pkt_mark",
"mask": null,
"value": 54321
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 3,
"xid": 2
}
}

View File

@ -0,0 +1,61 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 1,
"cookie": 1311768467463790320,
"cookie_mask": 18446744073709551615,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"OFPActionPopVlan": {
"len": 8,
"type": 18
}
}
],
"len": 16,
"type": 4
}
},
{
"OFPInstructionGotoTable": {
"len": 8,
"table_id": 100,
"type": 1
}
}
],
"match": {
"OFPMatch": {
"length": 22,
"oxm_fields": [
{
"OXMTlv": {
"field": "vlan_vid",
"mask": null,
"value": 5330
}
},
{
"OXMTlv": {
"field": "pkt_mark",
"mask": 65535,
"value": 54321
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 3,
"xid": 2
}
}