From 5552348c7c0a425313e2d5085d40d9729c8cc95e Mon Sep 17 00:00:00 2001 From: IWAMOTO Toshihiro Date: Wed, 3 Feb 2016 18:02:21 +0900 Subject: test_parser: add an NXActionRegLoad test Signed-off-by: IWAMOTO Toshihiro Signed-off-by: FUJITA Tomonori --- .../ovs-ofctl-of13-match_load_nx_register.packet | Bin 0 -> 104 bytes ...s-ofctl-of13-match_load_nx_register.packet.json | 60 +++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 ryu/tests/packet_data/of13/ovs-ofctl-of13-match_load_nx_register.packet create mode 100644 ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_load_nx_register.packet.json diff --git a/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_load_nx_register.packet b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_load_nx_register.packet new file mode 100644 index 00000000..8b738c8c Binary files /dev/null and b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_load_nx_register.packet differ diff --git a/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_load_nx_register.packet.json b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_load_nx_register.packet.json new file mode 100644 index 00000000..0b173a48 --- /dev/null +++ b/ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_load_nx_register.packet.json @@ -0,0 +1,60 @@ +{ + "OFPFlowMod": { + "buffer_id": 4294967295, + "command": 1, + "cookie": 1311768467463790320, + "cookie_mask": 18446744073709551615, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "instructions": [ + { + "OFPInstructionActions": { + "actions": [ + { + "NXActionRegLoad": { + "dst": "reg0", + "experimenter": 8992, + "len": 24, + "nbits": 28, + "ofs": 4, + "subtype": 7, + "type": 65535, + "value": 233495534 + } + } + ], + "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 + } +} -- cgit v1.2.3