Move Proxy Arp RESTCONF examples to separate POSTMAN collection 14/13314/1
authorMarek Gradzki <[email protected]>
Mon, 2 Jul 2018 07:10:11 +0000 (09:10 +0200)
committerMarek Gradzki <[email protected]>
Mon, 2 Jul 2018 07:11:36 +0000 (09:11 +0200)
Proxy Arp implementation is part of l3 plugin, so move
configuration examples there as well.

Change-Id: If3eb22dd295901529035e1ea231e9133d6e86bc7
Signed-off-by: Marek Gradzki <[email protected]>
l3/impl/proxy_arp_postman_collection.json [new file with mode: 0644]
v3po/postman_rest_collection.json

diff --git a/l3/impl/proxy_arp_postman_collection.json b/l3/impl/proxy_arp_postman_collection.json
new file mode 100644 (file)
index 0000000..4b14799
--- /dev/null
@@ -0,0 +1,241 @@
+{
+       "info": {
+               "_postman_id": "1a5e64fa-9e35-4696-b268-8b96a294d7e4",
+               "name": "Hc2vpp: proxy Arp",
+               "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
+       },
+       "item": [
+               {
+                       "name": "Add arp proxy range #1",
+                       "request": {
+                               "method": "PUT",
+                               "header": [
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4="
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json"
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\r\n    \"proxy-range\":{\r\n    \t\"vrf-id\":\"0\",\r\n    \t\"low-addr\":\"1.1.1.1\",\r\n    \t\"high-addr\":\"1.1.1.10\"\r\n    }\r\n}"
+                               },
+                               "url": {
+                                       "raw": "http://localhost:8183/restconf/config/proxy-arp:proxy-ranges/proxy-range/0/1.1.1.1/1.1.1.10",
+                                       "protocol": "http",
+                                       "host": [
+                                               "localhost"
+                                       ],
+                                       "port": "8183",
+                                       "path": [
+                                               "restconf",
+                                               "config",
+                                               "proxy-arp:proxy-ranges",
+                                               "proxy-range",
+                                               "0",
+                                               "1.1.1.1",
+                                               "1.1.1.10"
+                                       ]
+                               },
+                               "description": "Equivalent of\n\nvppctl set ip arp proxy 1.1.1.1 - 1.1.1.10\n\nCan be verified with\n\nvppctl show ip arp"
+                       },
+                       "response": []
+               },
+               {
+                       "name": "Add arp proxy range #2",
+                       "request": {
+                               "method": "PUT",
+                               "header": [
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4="
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json"
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\r\n    \"proxy-range\":{\r\n    \t\"vrf-id\":\"0\",\r\n    \t\"low-addr\":\"2.2.2.2\",\r\n    \t\"high-addr\":\"2.2.2.42\"\r\n    }\r\n}"
+                               },
+                               "url": {
+                                       "raw": "http://localhost:8183/restconf/config/proxy-arp:proxy-ranges/proxy-range/0/2.2.2.2/2.2.2.42",
+                                       "protocol": "http",
+                                       "host": [
+                                               "localhost"
+                                       ],
+                                       "port": "8183",
+                                       "path": [
+                                               "restconf",
+                                               "config",
+                                               "proxy-arp:proxy-ranges",
+                                               "proxy-range",
+                                               "0",
+                                               "2.2.2.2",
+                                               "2.2.2.42"
+                                       ]
+                               },
+                               "description": "Equivalent of\n\nvppctl set ip arp proxy 2.2.2.2 - 2.2.2.42\n\nCan be verified with\n\nvppctl show ip arp"
+                       },
+                       "response": []
+               },
+               {
+                       "name": "Enable proxy arp for local0",
+                       "request": {
+                               "method": "PUT",
+                               "header": [
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4="
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json"
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": "{\n\t\"proxy-arp\": {}\n}"
+                               },
+                               "url": {
+                                       "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/proxy-arp",
+                                       "protocol": "http",
+                                       "host": [
+                                               "localhost"
+                                       ],
+                                       "port": "8183",
+                                       "path": [
+                                               "restconf",
+                                               "config",
+                                               "ietf-interfaces:interfaces",
+                                               "interface",
+                                               "local0",
+                                               "proxy-arp"
+                                       ]
+                               },
+                               "description": "Equivalent of\n\nvppctl set interface proxy-arp local0 enable"
+                       },
+                       "response": []
+               },
+               {
+                       "name": "Delete arp proxy range #1",
+                       "request": {
+                               "method": "DELETE",
+                               "header": [
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4="
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json"
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": ""
+                               },
+                               "url": {
+                                       "raw": "http://localhost:8183/restconf/config/proxy-arp:proxy-ranges/proxy-range/0/1.1.1.1/1.1.1.10",
+                                       "protocol": "http",
+                                       "host": [
+                                               "localhost"
+                                       ],
+                                       "port": "8183",
+                                       "path": [
+                                               "restconf",
+                                               "config",
+                                               "proxy-arp:proxy-ranges",
+                                               "proxy-range",
+                                               "0",
+                                               "1.1.1.1",
+                                               "1.1.1.10"
+                                       ]
+                               },
+                               "description": "Equivalent of\n\nvppctl set ip arp del proxy 1.1.1.1 - 1.1.1.10\n\nCan be verified with\n\nvppctl show ip arp"
+                       },
+                       "response": []
+               },
+               {
+                       "name": "Delete arp proxy range #2",
+                       "request": {
+                               "method": "DELETE",
+                               "header": [
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4="
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json"
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": ""
+                               },
+                               "url": {
+                                       "raw": "http://localhost:8183/restconf/config/proxy-arp:proxy-ranges/proxy-range/0/2.2.2.2/2.2.2.42",
+                                       "protocol": "http",
+                                       "host": [
+                                               "localhost"
+                                       ],
+                                       "port": "8183",
+                                       "path": [
+                                               "restconf",
+                                               "config",
+                                               "proxy-arp:proxy-ranges",
+                                               "proxy-range",
+                                               "0",
+                                               "2.2.2.2",
+                                               "2.2.2.42"
+                                       ]
+                               },
+                               "description": "Equivalent of\n\nvppctl set ip arp del proxy 2.2.2.2 - 2.2.2.42\n\nCan be verified with\n\nvppctl show ip arp"
+                       },
+                       "response": []
+               },
+               {
+                       "name": "Disable proxy arp for local0",
+                       "request": {
+                               "method": "DELETE",
+                               "header": [
+                                       {
+                                               "key": "Authorization",
+                                               "value": "Basic YWRtaW46YWRtaW4="
+                                       },
+                                       {
+                                               "key": "Content-Type",
+                                               "value": "application/json"
+                                       }
+                               ],
+                               "body": {
+                                       "mode": "raw",
+                                       "raw": ""
+                               },
+                               "url": {
+                                       "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/proxy-arp",
+                                       "protocol": "http",
+                                       "host": [
+                                               "localhost"
+                                       ],
+                                       "port": "8183",
+                                       "path": [
+                                               "restconf",
+                                               "config",
+                                               "ietf-interfaces:interfaces",
+                                               "interface",
+                                               "local0",
+                                               "proxy-arp"
+                                       ]
+                               },
+                               "description": "Equivalent of\n\nvppctl set interface proxy-arp local0 disable"
+                       },
+                       "response": []
+               }
+       ]
+}
\ No newline at end of file
index 965682f..d544ffb 100644 (file)
@@ -1,6 +1,6 @@
 {
        "info": {
-               "_postman_id": "4a6ffe04-00bb-41a4-b64e-94b012c0c211",
+               "_postman_id": "8204419d-8019-4b29-b758-4a0693efe2cb",
                "name": "Honeycomb V3PO RESTCONF calls",
                "description": "Common mgmt operations on VPP core using Honeycomb REST interface",
                "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
                                }
                        ]
                },
-               {
-                       "name": "Proxy Arp",
-                       "description": null,
-                       "item": [
-                               {
-                                       "name": "Add arp proxy range #1",
-                                       "request": {
-                                               "method": "PUT",
-                                               "header": [
-                                                       {
-                                                               "key": "Authorization",
-                                                               "value": "Basic YWRtaW46YWRtaW4="
-                                                       },
-                                                       {
-                                                               "key": "Content-Type",
-                                                               "value": "application/json"
-                                                       }
-                                               ],
-                                               "body": {
-                                                       "mode": "raw",
-                                                       "raw": "{\r\n    \"proxy-range\":{\r\n    \t\"vrf-id\":\"0\",\r\n    \t\"low-addr\":\"1.1.1.1\",\r\n    \t\"high-addr\":\"1.1.1.10\"\r\n    }\r\n}"
-                                               },
-                                               "url": {
-                                                       "raw": "http://localhost:8183/restconf/config/proxy-arp:proxy-ranges/proxy-range/0/1.1.1.1/1.1.1.10",
-                                                       "protocol": "http",
-                                                       "host": [
-                                                               "localhost"
-                                                       ],
-                                                       "port": "8183",
-                                                       "path": [
-                                                               "restconf",
-                                                               "config",
-                                                               "proxy-arp:proxy-ranges",
-                                                               "proxy-range",
-                                                               "0",
-                                                               "1.1.1.1",
-                                                               "1.1.1.10"
-                                                       ]
-                                               },
-                                               "description": "Equivalent of\n\nvppctl set ip arp proxy 1.1.1.1 - 1.1.1.10\n\nCan be verified with\n\nvppctl show ip arp"
-                                       },
-                                       "response": []
-                               },
-                               {
-                                       "name": "Add arp proxy range #2",
-                                       "request": {
-                                               "method": "PUT",
-                                               "header": [
-                                                       {
-                                                               "key": "Authorization",
-                                                               "value": "Basic YWRtaW46YWRtaW4="
-                                                       },
-                                                       {
-                                                               "key": "Content-Type",
-                                                               "value": "application/json"
-                                                       }
-                                               ],
-                                               "body": {
-                                                       "mode": "raw",
-                                                       "raw": "{\r\n    \"proxy-range\":{\r\n    \t\"vrf-id\":\"0\",\r\n    \t\"low-addr\":\"2.2.2.2\",\r\n    \t\"high-addr\":\"2.2.2.42\"\r\n    }\r\n}"
-                                               },
-                                               "url": {
-                                                       "raw": "http://localhost:8183/restconf/config/proxy-arp:proxy-ranges/proxy-range/0/2.2.2.2/2.2.2.42",
-                                                       "protocol": "http",
-                                                       "host": [
-                                                               "localhost"
-                                                       ],
-                                                       "port": "8183",
-                                                       "path": [
-                                                               "restconf",
-                                                               "config",
-                                                               "proxy-arp:proxy-ranges",
-                                                               "proxy-range",
-                                                               "0",
-                                                               "2.2.2.2",
-                                                               "2.2.2.42"
-                                                       ]
-                                               },
-                                               "description": "Equivalent of\n\nvppctl set ip arp proxy 2.2.2.2 - 2.2.2.42\n\nCan be verified with\n\nvppctl show ip arp"
-                                       },
-                                       "response": []
-                               },
-                               {
-                                       "name": "Enable proxy arp for local0",
-                                       "request": {
-                                               "method": "PUT",
-                                               "header": [
-                                                       {
-                                                               "key": "Authorization",
-                                                               "value": "Basic YWRtaW46YWRtaW4="
-                                                       },
-                                                       {
-                                                               "key": "Content-Type",
-                                                               "value": "application/json"
-                                                       }
-                                               ],
-                                               "body": {
-                                                       "mode": "raw",
-                                                       "raw": "{\n\t\"proxy-arp\": {}\n}"
-                                               },
-                                               "url": {
-                                                       "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/proxy-arp",
-                                                       "protocol": "http",
-                                                       "host": [
-                                                               "localhost"
-                                                       ],
-                                                       "port": "8183",
-                                                       "path": [
-                                                               "restconf",
-                                                               "config",
-                                                               "ietf-interfaces:interfaces",
-                                                               "interface",
-                                                               "local0",
-                                                               "proxy-arp"
-                                                       ]
-                                               },
-                                               "description": "Equivalent of\n\nvppctl set interface proxy-arp local0 enable"
-                                       },
-                                       "response": []
-                               },
-                               {
-                                       "name": "Delete arp proxy range #1",
-                                       "request": {
-                                               "method": "DELETE",
-                                               "header": [
-                                                       {
-                                                               "key": "Authorization",
-                                                               "value": "Basic YWRtaW46YWRtaW4="
-                                                       },
-                                                       {
-                                                               "key": "Content-Type",
-                                                               "value": "application/json"
-                                                       }
-                                               ],
-                                               "body": {
-                                                       "mode": "raw",
-                                                       "raw": ""
-                                               },
-                                               "url": {
-                                                       "raw": "http://localhost:8183/restconf/config/proxy-arp:proxy-ranges/proxy-range/0/1.1.1.1/1.1.1.10",
-                                                       "protocol": "http",
-                                                       "host": [
-                                                               "localhost"
-                                                       ],
-                                                       "port": "8183",
-                                                       "path": [
-                                                               "restconf",
-                                                               "config",
-                                                               "proxy-arp:proxy-ranges",
-                                                               "proxy-range",
-                                                               "0",
-                                                               "1.1.1.1",
-                                                               "1.1.1.10"
-                                                       ]
-                                               },
-                                               "description": "Equivalent of\n\nvppctl set ip arp del proxy 1.1.1.1 - 1.1.1.10\n\nCan be verified with\n\nvppctl show ip arp"
-                                       },
-                                       "response": []
-                               },
-                               {
-                                       "name": "Delete arp proxy range #2",
-                                       "request": {
-                                               "method": "DELETE",
-                                               "header": [
-                                                       {
-                                                               "key": "Authorization",
-                                                               "value": "Basic YWRtaW46YWRtaW4="
-                                                       },
-                                                       {
-                                                               "key": "Content-Type",
-                                                               "value": "application/json"
-                                                       }
-                                               ],
-                                               "body": {
-                                                       "mode": "raw",
-                                                       "raw": ""
-                                               },
-                                               "url": {
-                                                       "raw": "http://localhost:8183/restconf/config/proxy-arp:proxy-ranges/proxy-range/0/2.2.2.2/2.2.2.42",
-                                                       "protocol": "http",
-                                                       "host": [
-                                                               "localhost"
-                                                       ],
-                                                       "port": "8183",
-                                                       "path": [
-                                                               "restconf",
-                                                               "config",
-                                                               "proxy-arp:proxy-ranges",
-                                                               "proxy-range",
-                                                               "0",
-                                                               "2.2.2.2",
-                                                               "2.2.2.42"
-                                                       ]
-                                               },
-                                               "description": "Equivalent of\n\nvppctl set ip arp del proxy 2.2.2.2 - 2.2.2.42\n\nCan be verified with\n\nvppctl show ip arp"
-                                       },
-                                       "response": []
-                               },
-                               {
-                                       "name": "Disable proxy arp for local0",
-                                       "request": {
-                                               "method": "DELETE",
-                                               "header": [
-                                                       {
-                                                               "key": "Authorization",
-                                                               "value": "Basic YWRtaW46YWRtaW4="
-                                                       },
-                                                       {
-                                                               "key": "Content-Type",
-                                                               "value": "application/json"
-                                                       }
-                                               ],
-                                               "body": {
-                                                       "mode": "raw",
-                                                       "raw": ""
-                                               },
-                                               "url": {
-                                                       "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/local0/proxy-arp",
-                                                       "protocol": "http",
-                                                       "host": [
-                                                               "localhost"
-                                                       ],
-                                                       "port": "8183",
-                                                       "path": [
-                                                               "restconf",
-                                                               "config",
-                                                               "ietf-interfaces:interfaces",
-                                                               "interface",
-                                                               "local0",
-                                                               "proxy-arp"
-                                                       ]
-                                               },
-                                               "description": "Equivalent of\n\nvppctl set interface proxy-arp local0 disable"
-                                       },
-                                       "response": []
-                               }
-                       ]
-               },
                {
                        "name": "SPAN",
                        "description": null,
                },
                {
                        "name": "AF_PACKET",
-                       "description": "",
+                       "description": null,
                        "item": [
                                {
                                        "name": "Add af_packet interface",