Add NSH_SFC Postman Collection
authorHongjun Ni <[email protected]>
Wed, 14 Sep 2016 11:40:47 +0000 (19:40 +0800)
committerMaros Marsalek <[email protected]>
Wed, 14 Sep 2016 07:44:56 +0000 (07:44 +0000)
Change-Id: I67acd9d5ee9581a8365e4ef46b0c441bbdbd9d4b
Signed-off-by: Hongjun Ni <[email protected]>
nsh/nsh_postman_collection.json [new file with mode: 0644]

diff --git a/nsh/nsh_postman_collection.json b/nsh/nsh_postman_collection.json
new file mode 100644 (file)
index 0000000..a0d2d3a
--- /dev/null
@@ -0,0 +1,337 @@
+{
+       "id": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+       "name": "Honeycomb RESTCONF calls for NSH_SFC",
+       "description": "Common mgmt operations on VPP using Honeycomb REST interface",
+       "order": [],
+       "folders": [
+               {
+                       "id": "2502c4f1-af98-c534-4b91-1406aed3311d",
+                       "name": "NSH_SFC",
+                       "description": "",
+                       "order": [
+                               "4ff752a7-8ae3-d104-030b-d95f58355ccc",
+                               "81185d8f-4160-807f-fc76-f59e69b7d29e",
+                               "5f96cf69-8c56-4010-e018-30ac0a6f0b1a",
+                               "2e0edbd7-cf82-747b-d2fb-223b57c9b834",
+                               "793a461b-f7f4-715d-80a4-a6587a08605d",
+                               "57deb7dc-0592-8243-513b-eba8b0b518d8",
+                               "62c21c12-56fa-4f1c-b02b-b396d135f8f3",
+                               "0a9cca39-208f-0767-f711-d1da97fda8d1"
+                       ],
+                       "owner": "652751",
+                       "collectionId": "b6a0ef73-644b-01fc-93c4-a4b260b9acff"
+               },
+               {
+                       "id": "5c285e56-bd8e-5862-b57e-64aa50d1c194",
+                       "name": "VXLAN-GPE-TUNNEL",
+                       "description": "",
+                       "order": [
+                               "58394713-b868-91f7-fe33-f05cc3ae7fb0",
+                               "30628971-9262-08cd-04b8-fff021814df3",
+                               "e23aa3c9-5ce7-0d03-3d42-87936d4ef1e1",
+                               "fd829953-dd1e-47b5-07c3-3cbd14a9c118"
+                       ],
+                       "owner": "652751",
+                       "collectionId": "b6a0ef73-644b-01fc-93c4-a4b260b9acff"
+               },
+               {
+                       "id": "edf5527f-df76-3e65-5b0c-6420b6cc1b42",
+                       "name": "VXLAN-TUNNEL",
+                       "description": "",
+                       "order": [
+                               "43d50e69-df5e-e193-0a0f-1dea35670204",
+                               "4325e122-094c-b52d-d81c-acbee3ba4691"
+                       ],
+                       "owner": "652751"
+               }
+       ],
+       "timestamp": 1473313581383,
+       "owner": "652751",
+       "public": false,
+       "published": false,
+       "requests": [
+               {
+                       "id": "0a9cca39-208f-0767-f711-d1da97fda8d1",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "DELETE",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679734916,
+                       "name": "Delete nsh-map - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \"nsh-map\": [\r\n        {\r\n            \"name\": \"nshMap5\",\r\n            \"nsp\": \"184\",\r\n            \"nsi\": \"255\",\r\n            \"mapped-nsp\": \"183\",\r\n            \"mapped-nsi\": \"254\"             \r\n        }\r\n    ]\r\n}"
+               },
+               {
+                       "id": "2e0edbd7-cf82-747b-d2fb-223b57c9b834",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry3",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "DELETE",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473313722940,
+                       "name": "Delete nsh-entry - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \"nsh-entry\": [\r\n        {\r\n            \"name\": \"nshEntry3\",\r\n            \"version\": \"0\",\r\n            \"length\": \"6\",\r\n            \"md-type\": \"md-type1\",\r\n            \"next-protocol\": \"ethernet\",\r\n            \"nsp\": \"184\",\r\n            \"nsi\": \"255\"             \r\n        }\r\n    ]\r\n}"
+               },
+               {
+                       "id": "30628971-9262-08cd-04b8-fff021814df3",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "GET",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679728872,
+                       "name": "Get vxlan-gpe - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"vxlanGpeTun3\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"v3po:vxlan-gpe-tunnel\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"routing\" : {\r\n                    \"vrf-id\" : \"0\"\r\n                },\r\n                \"vxlan-gpe\" : {\r\n                    \"local\" : \"192.168.50.76\",\r\n                    \"remote\" : \"192.168.50.71\",\r\n                    \"vni\" : \"9\",\r\n                    \"next-protocol\" : \"ethernet\",\r\n                    \"encap-vrf-id\" : \"0\",\r\n                    \"decap-vrf-id\" : \"0\"\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
+               },
+               {
+                       "id": "4325e122-094c-b52d-d81c-acbee3ba4691",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun1",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "DELETE",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1462892071867,
+                       "name": "Delete virtual ifc - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "timestamp": null,
+                       "rawModeData": "",
+                       "folder": "edf5527f-df76-3e65-5b0c-6420b6cc1b42"
+               },
+               {
+                       "id": "43d50e69-df5e-e193-0a0f-1dea35670204",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "https://localhost:8443/restconf/config/ietf-interfaces:interfaces/interface/vxlanTun1",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "PUT",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679767979,
+                       "name": "Add virtual ifc - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"vxlanTun1\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"v3po:vxlan-tunnel\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"routing\" : {\r\n                    \"vrf-id\" : \"0\"\r\n                },\r\n                \"vxlan\" : {\r\n                    \"src\" : \"192.168.1.6\",\r\n                    \"dst\" : \"192.168.1.9\",\r\n                    \"vni\" : \"88\",\r\n                    \"encap-vrf-id\" : \"0\"\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
+               },
+               {
+                       "id": "4ff752a7-8ae3-d104-030b-d95f58355ccc",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry3",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "PUT",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679751885,
+                       "name": "Add nsh-entry - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \"nsh-entry\": [\r\n        {\r\n            \"name\": \"nshEntry3\",\r\n            \"version\": \"0\",\r\n            \"length\": \"6\",\r\n            \"md-type\": \"md-type1\",\r\n            \"next-protocol\": \"ethernet\",\r\n            \"nsp\": \"184\",\r\n            \"nsi\": \"255\",\r\n            \"c1\": \"1\",\r\n            \"c2\": \"2\",\r\n            \"c3\": \"3\",\r\n            \"c4\": \"4\"\r\n        }\r\n    ]\r\n}"
+               },
+               {
+                       "id": "57deb7dc-0592-8243-513b-eba8b0b518d8",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "GET",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679742877,
+                       "name": "Get nsh-map - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"nsh-entry\": [\r\n            {\r\n                \"name\": \"nshEntry5\",\r\n                \"description\": \"for testing nshEntry\",\r\n                \"version\": \"0\",\r\n                \"length\": \"6\",\r\n                \"next-protocol\": \"Ethernet\",\r\n                \"md-type\": \"MdType1\",\r\n                \"nsp\": \"185\",\r\n                \"nsi\": \"255\"             \r\n            }\r\n        ]\r\n    \r\n}"
+               },
+               {
+                       "id": "58394713-b868-91f7-fe33-f05cc3ae7fb0",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "PUT",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679731521,
+                       "name": "Add vxlan-gpe - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"vxlanGpeTun3\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"v3po:vxlan-gpe-tunnel\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"routing\" : {\r\n                    \"vrf-id\" : \"0\"\r\n                },\r\n                \"vxlan-gpe\" : {\r\n                    \"local\" : \"192.168.50.76\",\r\n                    \"remote\" : \"192.168.50.71\",\r\n                    \"vni\" : \"9\",\r\n                    \"next-protocol\" : \"ethernet\",\r\n                    \"encap-vrf-id\" : \"0\",\r\n                    \"decap-vrf-id\" : \"0\"\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
+               },
+               {
+                       "id": "5f96cf69-8c56-4010-e018-30ac0a6f0b1a",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/operational/vpp-nsh:vpp-nsh-state/nsh-entries/",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "GET",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473313726281,
+                       "name": "Get nsh-entry - oper",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"nsh-entry\": [\r\n            {\r\n                \"name\": \"nshEntry5\",\r\n                \"description\": \"for testing nshEntry\",\r\n                \"version\": \"0\",\r\n                \"length\": \"6\",\r\n                \"next-protocol\": \"Ethernet\",\r\n                \"md-type\": \"MdType1\",\r\n                \"nsp\": \"185\",\r\n                \"nsi\": \"255\"             \r\n            }\r\n        ]\r\n    \r\n}"
+               },
+               {
+                       "id": "62c21c12-56fa-4f1c-b02b-b396d135f8f3",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/operational/vpp-nsh:vpp-nsh-state/nsh-maps/",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "GET",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679740794,
+                       "name": "Get nsh-map - oper",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"nsh-entry\": [\r\n            {\r\n                \"name\": \"nshEntry5\",\r\n                \"description\": \"for testing nshEntry\",\r\n                \"version\": \"0\",\r\n                \"length\": \"6\",\r\n                \"next-protocol\": \"Ethernet\",\r\n                \"md-type\": \"MdType1\",\r\n                \"nsp\": \"185\",\r\n                \"nsi\": \"255\"             \r\n            }\r\n        ]\r\n    \r\n}"
+               },
+               {
+                       "id": "793a461b-f7f4-715d-80a4-a6587a08605d",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-maps/nsh-map/nshMap5",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "PUT",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679745291,
+                       "name": "Add nsh-map - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \"nsh-map\": [\r\n        {\r\n            \"name\": \"nshMap5\",\r\n            \"nsp\": \"184\",\r\n            \"nsi\": \"255\",\r\n            \"mapped-nsp\": \"183\",\r\n            \"mapped-nsi\": \"254\",\r\n            \"encap-type\": \"vxlan-gpe\",\r\n            \"encap-if-name\": \"vxlanGpeTun3\"\r\n        }\r\n    ]\r\n}"
+               },
+               {
+                       "id": "81185d8f-4160-807f-fc76-f59e69b7d29e",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/vpp-nsh:vpp-nsh/nsh-entries/nsh-entry/nshEntry3",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "GET",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473313729119,
+                       "name": "Get nsh-entry - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"nsh-entry\": [\r\n            {\r\n                \"name\": \"nshEntry5\",\r\n                \"description\": \"for testing nshEntry\",\r\n                \"version\": \"0\",\r\n                \"length\": \"6\",\r\n                \"next-protocol\": \"Ethernet\",\r\n                \"md-type\": \"MdType1\",\r\n                \"nsp\": \"185\",\r\n                \"nsi\": \"255\"             \r\n            }\r\n        ]\r\n    \r\n}"
+               },
+               {
+                       "id": "e23aa3c9-5ce7-0d03-3d42-87936d4ef1e1",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/vxlanGpeTun3",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "GET",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1473679726298,
+                       "name": "Get vxlan-gpe - oper",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "{\r\n    \r\n        \"interface\": [\r\n            {\r\n                \"name\": \"vxlanGpeTun3\",\r\n                \"description\": \"for testing purposes\",\r\n                \"type\": \"v3po:vxlan-gpe-tunnel\",\r\n                \"enabled\": \"true\",\r\n                \"link-up-down-trap-enable\": \"enabled\",\r\n                \"routing\" : {\r\n                    \"vrf-id\" : \"0\"\r\n                },\r\n                \"vxlan-gpe\" : {\r\n                    \"local\" : \"192.168.50.76\",\r\n                    \"remote\" : \"192.168.50.71\",\r\n                    \"vni\" : \"9\",\r\n                    \"next-protocol\" : \"ethernet\",\r\n                    \"encap-vrf-id\" : \"0\",\r\n                    \"decap-vrf-id\" : \"0\"\r\n                }\r\n            }\r\n        ]\r\n    \r\n}"
+               },
+               {
+                       "id": "fd829953-dd1e-47b5-07c3-3cbd14a9c118",
+                       "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+                       "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/vxlanGpeTun3",
+                       "preRequestScript": "",
+                       "pathVariables": {},
+                       "method": "DELETE",
+                       "data": [],
+                       "dataMode": "raw",
+                       "version": 2,
+                       "tests": "",
+                       "currentHelper": "normal",
+                       "helperAttributes": {},
+                       "time": 1464764638498,
+                       "name": "Delete vxlan-gpe - cfg",
+                       "description": "",
+                       "collectionId": "7bc86252-25fb-304b-7de0-d175560c2ecb",
+                       "responses": [],
+                       "rawModeData": "",
+                       "folder": "5c285e56-bd8e-5862-b57e-64aa50d1c194"
+               }
+       ]
+}
\ No newline at end of file