diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2016-12-20 14:07:43 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2016-12-20 14:07:43 +0100 |
commit | 52fabc2b192be911c6de582ea27d145228187a7e (patch) | |
tree | 6bb9d309eebde80cdf5b226e48f7ed3fc252ca4a /acl | |
parent | f8273e10b19ecc82bdda81feef9982ce28d5de21 (diff) |
HONEYCOMB-310: postman collection for acl plugin
Change-Id: I4eb0c7df35577488259e48da7b32ae0a6c47de56
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'acl')
-rw-r--r-- | acl/acl_postman_collection.json | 223 |
1 files changed, 223 insertions, 0 deletions
diff --git a/acl/acl_postman_collection.json b/acl/acl_postman_collection.json new file mode 100644 index 000000000..d862b8127 --- /dev/null +++ b/acl/acl_postman_collection.json @@ -0,0 +1,223 @@ +{ + "id": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "name": "Hc2vpp RESTCONF calls for acl plugin", + "description": "Provides examples of RESTCONF calls for vpp's acl plugin, exposed\nin hc2vpp.", + "order": [ + "3baf91bf-ea7d-17ce-cf07-e58eaff8abb7", + "08a5f3da-660c-643e-22b7-1036c4c15563", + "3930c12e-a57f-0bb7-402a-11455b4d4dd6", + "7666fd95-d498-2f13-a6a7-52b5359f9b13", + "3d8a53cf-ade0-0d4e-3b5a-205532da7e91", + "c3ccf5cf-6ecf-7a92-b538-4fc829cb8d2d", + "a71b6350-ba59-8390-1b24-a5aab283b3dd", + "2a212662-55b3-cf79-5391-c7628f198998", + "cf8cae71-13a7-4bc0-11e8-36875cef57b2", + "b8d5d674-10b1-cd0e-f49b-b503dc95b7d2" + ], + "folders": [], + "timestamp": 1482156233076, + "owner": "567303", + "public": false, + "requests": [ + { + "id": "08a5f3da-660c-643e-22b7-1036c4c15563", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-acl/icmp-acl", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482161973602, + "name": "Write icmp acl list", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\r\n \"acl\": [\r\n {\r\n \"acl-name\": \"icmp-acl\",\r\n \"acl-type\": \"vpp-acl:vpp-acl\",\r\n \"access-list-entries\": {\r\n \"ace\": [\r\n {\r\n \"rule-name\": \"imcp-rule\",\r\n \"matches\": {\r\n \"vpp-ace-nodes\": {\r\n \"destination-ipv4-network\": \"192.168.2.1/24\",\r\n \"source-ipv4-network\": \"192.168.2.2/32\",\r\n \"icmp-nodes\": {\r\n \"icmp-type-range\": {\r\n \"first\": \"5\",\r\n \"last\": \"8\"\r\n },\r\n \"icmp-code-range\": {\r\n \"first\": \"1\",\r\n \"last\": \"3\"\r\n }\r\n }\r\n }\r\n },\r\n \"actions\": {\r\n \"permit\": {}\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}" + }, + { + "id": "2a212662-55b3-cf79-5391-c7628f198998", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/", + "preRequestScript": "", + "pathVariables": {}, + "method": "GET", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482157742280, + "name": "Read ACLs (cfg)", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}" + }, + { + "id": "3930c12e-a57f-0bb7-402a-11455b4d4dd6", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-acl/tcp-acl", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482163082115, + "name": "Write tcp acl list", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\r\n \"acl\": [\r\n {\r\n \"acl-name\": \"tcp-acl\",\r\n \"acl-type\": \"vpp-acl:vpp-acl\",\r\n \"access-list-entries\": {\r\n \"ace\": [\r\n {\r\n \"rule-name\": \"tcp-rule\",\r\n \"matches\": {\r\n \"vpp-ace-nodes\": {\r\n \"destination-ipv4-network\": \"192.168.2.1/24\",\r\n \"source-ipv4-network\": \"192.168.2.2/32\",\r\n \"tcp-nodes\": {\r\n \"source-port-range\": {\r\n \"lower-port\": \"1\",\r\n \"upper-port\": \"5487\"\r\n },\r\n \"destination-port-range\": {\r\n \"lower-port\": \"87\",\r\n \"upper-port\": \"6745\"\r\n },\r\n \"tcp-flags-mask\": \"1\",\r\n \"tcp-flags-value\": \"7\"\r\n }\r\n }\r\n },\r\n \"actions\": {\r\n \"permit\": {}\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}" + }, + { + "id": "3baf91bf-ea7d-17ce-cf07-e58eaff8abb7", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-macip-acl/macip-acl", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482161927006, + "name": "Write mac_ip list", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\r\n \"acl\": [\r\n {\r\n \"acl-name\": \"macip-acl\",\r\n \"acl-type\": \"vpp-acl:vpp-macip-acl\",\r\n \"access-list-entries\": {\r\n \"ace\": [\r\n {\r\n \"rule-name\": \"macip-rule\",\r\n \"matches\": {\r\n \"vpp-macip-ace-nodes\": {\r\n \"source-ipv4-network\": \"192.168.2.2/32\",\r\n \"source-mac-address\": \"aa:aa:aa:aa:aa:aa\",\r\n \"source-mac-address-mask\": \"ff:00:00:00:00:00\"\r\n }\r\n },\r\n \"actions\": {\r\n \"permit\": {}\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}" + }, + { + "id": "3d8a53cf-ade0-0d4e-3b5a-205532da7e91", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-acl/udp-acl", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482163289999, + "name": "Write udp acl list", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\r\n \"acl\": [\r\n {\r\n \"acl-name\": \"udp-acl\",\r\n \"acl-type\": \"vpp-acl:vpp-acl\",\r\n \"access-list-entries\": {\r\n \"ace\": [\r\n {\r\n \"rule-name\": \"udp-rule\",\r\n \"matches\": {\r\n \"vpp-ace-nodes\": {\r\n \"destination-ipv4-network\": \"192.168.2.1/24\",\r\n \"source-ipv4-network\": \"192.168.2.2/32\",\r\n \"udp-nodes\": {\r\n \"source-port-range\": {\r\n \"lower-port\": \"1\",\r\n \"upper-port\": \"5487\"\r\n },\r\n \"destination-port-range\": {\r\n \"lower-port\": \"87\",\r\n \"upper-port\": \"6745\"\r\n }\r\n }\r\n }\r\n },\r\n \"actions\": {\r\n \"permit\": {}\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}" + }, + { + "id": "7666fd95-d498-2f13-a6a7-52b5359f9b13", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-access-control-list:access-lists/acl/vpp-acl:vpp-acl/icmp-v6-acl", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482163130562, + "name": "Write icmp-v6 acl list", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\r\n \"acl\": [\r\n {\r\n \"acl-name\": \"icmp-v6-acl\",\r\n \"acl-type\": \"vpp-acl:vpp-acl\",\r\n \"access-list-entries\": {\r\n \"ace\": [\r\n {\r\n \"rule-name\": \"imcp-v6-rule\",\r\n \"matches\": {\r\n \"vpp-ace-nodes\": {\r\n \"destination-ipv6-network\": \"2001:0db8:0a0b:12f0:0000:0000:0000:0001/64\",\r\n \"source-ipv6-network\": \"2001:0db8:0a0b:12f0:0000:0000:0000:0002/48\",\r\n \"icmp-v6-nodes\": {\r\n \"icmp-type-range\": {\r\n \"first\": \"5\",\r\n \"last\": \"8\"\r\n },\r\n \"icmp-code-range\": {\r\n \"first\": \"1\",\r\n \"last\": \"3\"\r\n }\r\n }\r\n }\r\n },\r\n \"actions\": {\r\n \"permit\": {}\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}" + }, + { + "id": "a71b6350-ba59-8390-1b24-a5aab283b3dd", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-acl:acl/ingress/vpp-macip-acl", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482231403896, + "name": "Assign macip ACL to local0", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\n\t\"vpp-macip-acl\": {\n\t\t\"type\" : \"vpp-acl:vpp-macip-acl\",\n\t\t\"name\" : \"macip-acl\"\n }\n}" + }, + { + "id": "b8d5d674-10b1-cd0e-f49b-b503dc95b7d2", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-acl:acl/ingress", + "preRequestScript": "", + "pathVariables": {}, + "method": "GET", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482219387417, + "name": "Read ACLs assigned to local0 (cfg)", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\n \"ingress\": {\n \"vpp-acls\": [\n {\n \"type\" : \"vpp-acl:vpp-acl\",\n \"name\" : \"tcp-acl\"\n },\n {\n \"type\" : \"vpp-acl:vpp-acl\",\n \"name\" : \"udp-acl\"\n }\n ]\n }\n}" + }, + { + "id": "c3ccf5cf-6ecf-7a92-b538-4fc829cb8d2d", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/interface-acl:acl/ingress", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482216755397, + "name": "Assign ACLs as ingress to local0", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\n \"ingress\": {\n \"vpp-acls\": [\n {\n \"type\" : \"vpp-acl:vpp-acl\",\n \"name\" : \"tcp-acl\"\n },\n {\n \"type\" : \"vpp-acl:vpp-acl\",\n \"name\" : \"udp-acl\"\n }\n ]\n }\n}" + }, + { + "id": "cf8cae71-13a7-4bc0-11e8-36875cef57b2", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/local0/interface-acl:acl/ingress", + "preRequestScript": "", + "pathVariables": {}, + "method": "GET", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1482217971617, + "name": "Read ingress ACLs assigned to local0", + "description": "", + "collectionId": "7d511277-9b9c-8a1c-2ad7-58618b778f72", + "responses": [], + "rawModeData": "{\n \"ingress\": {\n \"vpp-acls\": [\n {\n \"type\" : \"vpp-acl:vpp-acl\",\n \"name\" : \"tcp-acl\"\n },\n {\n \"type\" : \"vpp-acl:vpp-acl\",\n \"name\" : \"udp-acl\"\n }\n ]\n }\n}" + } + ] +}
\ No newline at end of file |