diff options
Diffstat (limited to 'tests/unit/ofproto/json/of10')
13 files changed, 423 insertions, 0 deletions
diff --git a/tests/unit/ofproto/json/of10/1-1-ofp_packet_out.packet.json b/tests/unit/ofproto/json/of10/1-1-ofp_packet_out.packet.json new file mode 100644 index 00000000..0dc98f49 --- /dev/null +++ b/tests/unit/ofproto/json/of10/1-1-ofp_packet_out.packet.json @@ -0,0 +1,15 @@ +{ + "OFPPacketOut": { + "actions": [ + { + "OFPActionOutput": { + "max_len": 65535, + "port": 65532 + } + } + ], + "buffer_id": 4294967295, + "data": "8guk0D9w8gukffjqCABFAABU+BoAAP8Br4sKAAABCgAAAggAAgj3YAAAMdYCAAAAAACrjS0xAAAAABAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vAAAAAAAAAAA=", + "in_port": 65533 + } +} diff --git a/tests/unit/ofproto/json/of10/1-2-ofp_flow_mod.packet.json b/tests/unit/ofproto/json/of10/1-2-ofp_flow_mod.packet.json new file mode 100644 index 00000000..4a63685e --- /dev/null +++ b/tests/unit/ofproto/json/of10/1-2-ofp_flow_mod.packet.json @@ -0,0 +1,37 @@ +{ + "OFPFlowMod": { + "actions": [ + { + "OFPActionOutput": { + "max_len": 65535, + "port": 6 + } + } + ], + "buffer_id": 65535, + "command": 0, + "cookie": 0, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "match": { + "OFPMatch": { + "dl_dst": "f2:0b:a4:7d:f8:ea", + "dl_src": "00:00:00:00:00:00", + "dl_type": 0, + "dl_vlan": 0, + "dl_vlan_pcp": 0, + "in_port": 0, + "nw_dst": "0.0.0.0", + "nw_proto": 0, + "nw_src": "0.0.0.0", + "nw_tos": 0, + "tp_dst": 0, + "tp_src": 0, + "wildcards": 4194295 + } + }, + "out_port": 65532, + "priority": 123 + } +} diff --git a/tests/unit/ofproto/json/of10/1-4-ofp_packet_in.packet.json b/tests/unit/ofproto/json/of10/1-4-ofp_packet_in.packet.json new file mode 100644 index 00000000..6ccd2fb8 --- /dev/null +++ b/tests/unit/ofproto/json/of10/1-4-ofp_packet_in.packet.json @@ -0,0 +1,9 @@ +{ + "OFPPacketIn": { + "buffer_id": 2, + "data": "////////8gukffjqCAYAAQgABgQAAfILpH346goAAAEAAAAAAAAKAAAD", + "in_port": 99, + "reason": 1, + "total_len": 42 + } +} diff --git a/tests/unit/ofproto/json/of10/1-5-features_request.packet.json b/tests/unit/ofproto/json/of10/1-5-features_request.packet.json new file mode 100644 index 00000000..8f48ad5a --- /dev/null +++ b/tests/unit/ofproto/json/of10/1-5-features_request.packet.json @@ -0,0 +1,3 @@ +{ + "OFPFeaturesRequest": {} +} diff --git a/tests/unit/ofproto/json/of10/1-6-ofp_switch_features.packet.json b/tests/unit/ofproto/json/of10/1-6-ofp_switch_features.packet.json new file mode 100644 index 00000000..208431f7 --- /dev/null +++ b/tests/unit/ofproto/json/of10/1-6-ofp_switch_features.packet.json @@ -0,0 +1,37 @@ +{ + "OFPSwitchFeatures": { + "actions": 2115, + "capabilities": 169, + "datapath_id": 1095522080376, + "n_buffers": 0, + "n_tables": 255, + "ports": { + "6": { + "OFPPhyPort": { + "advertised": 640, + "config": 0, + "curr": 648, + "hw_addr": "f2:0b:a4:7d:f8:ea", + "name": "Port6", + "peer": 648, + "port_no": 6, + "state": 2, + "supported": 648 + } + }, + "7": { + "OFPPhyPort": { + "advertised": 640, + "config": 0, + "curr": 648, + "hw_addr": "f2:0b:a4:d0:3f:70", + "name": "Port7", + "peer": 648, + "port_no": 7, + "state": 16, + "supported": 648 + } + } + } + } +} diff --git a/tests/unit/ofproto/json/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet.json b/tests/unit/ofproto/json/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet.json new file mode 100644 index 00000000..f8e38d71 --- /dev/null +++ b/tests/unit/ofproto/json/of10/libofproto-OFP10-ofp_packet_out_packet_library.packet.json @@ -0,0 +1,58 @@ +{ + "OFPPacketOut": { + "actions": [ + { + "OFPActionOutput": { + "max_len": 65535, + "port": 65532 + } + } + ], + "buffer_id": 4294967295, + "data": { + "Packet": { + "protocols": [ + { + "ethernet": { + "dst": "f2:0b:a4:d0:3f:70", + "ethertype": 2048, + "src": "f2:0b:a4:7d:f8:ea" + } + }, + { + "ipv4": { + "csum": 44939, + "dst": "10.0.0.2", + "flags": 0, + "header_length": 5, + "identification": 63514, + "offset": 0, + "option": null, + "proto": 1, + "src": "10.0.0.1", + "tos": 0, + "total_length": 84, + "ttl": 255, + "version": 4 + } + }, + { + "icmp": { + "code": 0, + "csum": 520, + "data": { + "echo": { + "data": "MdYCAAAAAACrjS0xAAAAABAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vAAAAAAAAAAA=", + "id": 63328, + "seq": 0 + } + }, + "type": 8 + } + } + ] + } + }, + "in_port": 65533 + } +} diff --git a/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_dec_mpls_ttl.packet.json b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_dec_mpls_ttl.packet.json new file mode 100644 index 00000000..a41c2b64 --- /dev/null +++ b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_dec_mpls_ttl.packet.json @@ -0,0 +1,37 @@ +{ + "OFPFlowMod": { + "actions": [ + { + "NXActionDecMplsTtl": { + "subtype": 26, + "vendor": 8992 + } + } + ], + "buffer_id": 4294967295, + "command": 0, + "cookie": 0, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "match": { + "OFPMatch": { + "dl_dst": "00:00:00:00:00:00", + "dl_src": "00:00:00:00:00:00", + "dl_type": 34887, + "dl_vlan": 0, + "dl_vlan_pcp": 0, + "in_port": 0, + "nw_dst": "0.0.0.0", + "nw_proto": 0, + "nw_src": "0.0.0.0", + "nw_tos": 0, + "tp_dst": 0, + "tp_src": 0, + "wildcards": 3678447 + } + }, + "out_port": 65535, + "priority": 100 + } +} diff --git a/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_dec_nw_ttl.packet.json b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_dec_nw_ttl.packet.json new file mode 100644 index 00000000..3f6806c8 --- /dev/null +++ b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_dec_nw_ttl.packet.json @@ -0,0 +1,37 @@ +{ + "OFPFlowMod": { + "actions": [ + { + "NXActionDecTtl": { + "subtype": 18, + "vendor": 8992 + } + } + ], + "buffer_id": 4294967295, + "command": 0, + "cookie": 0, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "match": { + "OFPMatch": { + "dl_dst": "00:00:00:00:00:00", + "dl_src": "00:00:00:00:00:00", + "dl_type": 34887, + "dl_vlan": 0, + "dl_vlan_pcp": 0, + "in_port": 0, + "nw_dst": "0.0.0.0", + "nw_proto": 0, + "nw_src": "0.0.0.0", + "nw_tos": 0, + "tp_dst": 0, + "tp_src": 0, + "wildcards": 3678447 + } + }, + "out_port": 65535, + "priority": 100 + } +} diff --git a/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_pop_mpls.packet.json b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_pop_mpls.packet.json new file mode 100644 index 00000000..69c0d70b --- /dev/null +++ b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_pop_mpls.packet.json @@ -0,0 +1,38 @@ +{ + "OFPFlowMod": { + "actions": [ + { + "NXActionPopMpls": { + "ethertype": 2048, + "subtype": 24, + "vendor": 8992 + } + } + ], + "buffer_id": 4294967295, + "command": 0, + "cookie": 0, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "match": { + "OFPMatch": { + "dl_dst": "00:00:00:00:00:00", + "dl_src": "00:00:00:00:00:00", + "dl_type": 34887, + "dl_vlan": 0, + "dl_vlan_pcp": 0, + "in_port": 0, + "nw_dst": "0.0.0.0", + "nw_proto": 0, + "nw_src": "0.0.0.0", + "nw_tos": 0, + "tp_dst": 0, + "tp_src": 0, + "wildcards": 3678447 + } + }, + "out_port": 65535, + "priority": 100 + } +} diff --git a/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_push_mpls.packet.json b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_push_mpls.packet.json new file mode 100644 index 00000000..9e7853cb --- /dev/null +++ b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_push_mpls.packet.json @@ -0,0 +1,38 @@ +{ + "OFPFlowMod": { + "actions": [ + { + "NXActionPushMpls": { + "ethertype": 34887, + "subtype": 23, + "vendor": 8992 + } + } + ], + "buffer_id": 4294967295, + "command": 0, + "cookie": 0, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "match": { + "OFPMatch": { + "dl_dst": "00:00:00:00:00:00", + "dl_src": "00:00:00:00:00:00", + "dl_type": 2048, + "dl_vlan": 0, + "dl_vlan_pcp": 0, + "in_port": 0, + "nw_dst": "0.0.0.0", + "nw_proto": 0, + "nw_src": "0.0.0.0", + "nw_tos": 0, + "tp_dst": 0, + "tp_src": 0, + "wildcards": 3678447 + } + }, + "out_port": 65535, + "priority": 100 + } +} diff --git a/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_label.packet.json b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_label.packet.json new file mode 100644 index 00000000..4cc001b2 --- /dev/null +++ b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_label.packet.json @@ -0,0 +1,38 @@ +{ + "OFPFlowMod": { + "actions": [ + { + "NXActionSetMplsLabel": { + "label": 10, + "subtype": 30, + "vendor": 8992 + } + } + ], + "buffer_id": 4294967295, + "command": 0, + "cookie": 0, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "match": { + "OFPMatch": { + "dl_dst": "00:00:00:00:00:00", + "dl_src": "00:00:00:00:00:00", + "dl_type": 34887, + "dl_vlan": 0, + "dl_vlan_pcp": 0, + "in_port": 0, + "nw_dst": "0.0.0.0", + "nw_proto": 0, + "nw_src": "0.0.0.0", + "nw_tos": 0, + "tp_dst": 0, + "tp_src": 0, + "wildcards": 3678447 + } + }, + "out_port": 65535, + "priority": 100 + } +} diff --git a/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_tc.packet.json b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_tc.packet.json new file mode 100644 index 00000000..864fd7e7 --- /dev/null +++ b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_tc.packet.json @@ -0,0 +1,38 @@ +{ + "OFPFlowMod": { + "actions": [ + { + "NXActionSetMplsTc": { + "subtype": 31, + "tc": 10, + "vendor": 8992 + } + } + ], + "buffer_id": 4294967295, + "command": 0, + "cookie": 0, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "match": { + "OFPMatch": { + "dl_dst": "00:00:00:00:00:00", + "dl_src": "00:00:00:00:00:00", + "dl_type": 34887, + "dl_vlan": 0, + "dl_vlan_pcp": 0, + "in_port": 0, + "nw_dst": "0.0.0.0", + "nw_proto": 0, + "nw_src": "0.0.0.0", + "nw_tos": 0, + "tp_dst": 0, + "tp_src": 0, + "wildcards": 3678447 + } + }, + "out_port": 65535, + "priority": 100 + } +} diff --git a/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_ttl.packet.json b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_ttl.packet.json new file mode 100644 index 00000000..da6e86f9 --- /dev/null +++ b/tests/unit/ofproto/json/of10/ovs-ofctl-of10-action_set_mpls_ttl.packet.json @@ -0,0 +1,38 @@ +{ + "OFPFlowMod": { + "actions": [ + { + "NXActionSetMplsTtl": { + "subtype": 25, + "ttl": 127, + "vendor": 8992 + } + } + ], + "buffer_id": 4294967295, + "command": 0, + "cookie": 0, + "flags": 0, + "hard_timeout": 0, + "idle_timeout": 0, + "match": { + "OFPMatch": { + "dl_dst": "00:00:00:00:00:00", + "dl_src": "00:00:00:00:00:00", + "dl_type": 34887, + "dl_vlan": 0, + "dl_vlan_pcp": 0, + "in_port": 0, + "nw_dst": "0.0.0.0", + "nw_proto": 0, + "nw_src": "0.0.0.0", + "nw_tos": 0, + "tp_dst": 0, + "tp_src": 0, + "wildcards": 3678447 + } + }, + "out_port": 65535, + "priority": 100 + } +} |