os-ken/ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-bundle_add.packet.json
Minoru TAKAHASHI 4dc709d90d of12/3/4/5: fix to_jsondict of OFPActionSetField
Some fields missing in the JSON dict that to_jsondict of OFPActionSetField is returnd.
This patch fixes this problem.

Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-02-10 13:35:13 +09:00

201 lines
7.3 KiB
JSON

{
"OFPBundleAddMsg": {
"bundle_id": 99999999,
"flags": 1,
"message": {
"OFPFlowMod": {
"buffer_id": 0,
"command": 0,
"cookie": 1311768467463790320,
"cookie_mask": 18446744073709551615,
"flags": 0,
"hard_timeout": 0,
"idle_timeout": 0,
"importance": 39032,
"instructions": [
{
"OFPInstructionActions": {
"actions": [
{
"OFPActionPopVlan": {
"len": 8,
"type": 18
}
},
{
"OFPActionSetField": {
"field": {
"OXMTlv": {
"field": "ipv4_dst",
"mask": null,
"value": "192.168.2.9"
}
},
"len": 16,
"type": 25
}
},
{
"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": 0,
"out_port": 0,
"priority": 0,
"table_id": 2
}
},
"properties": []
}
}