test_parser: add conntrack tests

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-11-12 15:53:33 +09:00 committed by FUJITA Tomonori
parent 877ed2804a
commit 7a9b1be5d6
4 changed files with 136 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 0,
"cookie": 0,
"cookie_mask": 0,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"NXActionCT": {
"actions": [],
"alg": 0,
"experimenter": 8992,
"flags": 0,
"len": 24,
"recirc_table": 4,
"subtype": 35,
"type": 65535,
"zone_ofs_nbits": 0,
"zone_src": 0
}
}
],
"len": 32,
"type": 4
}
}
],
"match": {
"OFPMatch": {
"length": 22,
"oxm_fields": [
{
"OXMTlv": {
"field": "eth_type",
"mask": null,
"value": 2048
}
},
{
"OXMTlv": {
"field": "ct_state",
"mask": 128,
"value": 0
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 3,
"xid": 2
}
}

View File

@ -0,0 +1,74 @@
{
"OFPFlowMod": {
"buffer_id": 4294967295,
"command": 0,
"cookie": 0,
"cookie_mask": 0,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"NXActionCT": {
"actions": [
{
"OFPActionSetField": {
"field": {
"OXMTlv": {
"field": "ct_mark",
"mask": null,
"value": 6636321
}
}
}
}
],
"alg": 0,
"experimenter": 8992,
"flags": 1,
"len": 40,
"recirc_table": 255,
"subtype": 35,
"type": 65535,
"zone_ofs_nbits": 0,
"zone_src": 0
}
}
],
"len": 48,
"type": 4
}
}
],
"match": {
"OFPMatch": {
"length": 22,
"oxm_fields": [
{
"OXMTlv": {
"field": "eth_type",
"mask": null,
"value": 2048
}
},
{
"OXMTlv": {
"field": "ct_state",
"mask": 130,
"value": 130
}
}
],
"type": 1
}
},
"out_group": 4294967295,
"out_port": 4294967295,
"priority": 32768,
"table_id": 3,
"xid": 2
}
}