summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWAMOTO Toshihiro <iwamoto@valinux.co.jp>2016-02-03 18:02:21 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 14:47:46 +0900
commit5552348c7c0a425313e2d5085d40d9729c8cc95e (patch)
tree82484b0701e5f10b92ab2addb07da6b02b5f5507
parentd4c6e154d540a63a6416b7f2e9c824d89ea82a6a (diff)
test_parser: add an NXActionRegLoad test
Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/packet_data/of13/ovs-ofctl-of13-match_load_nx_register.packetbin0 -> 104 bytes
-rw-r--r--ryu/tests/unit/ofproto/json/of13/ovs-ofctl-of13-match_load_nx_register.packet.json60
2 files changed, 60 insertions, 0 deletions
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
--- /dev/null
+++ b/ryu/tests/packet_data/of13/ovs-ofctl-of13-match_load_nx_register.packet
Binary files 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
+ }
+}