HC2VPP-339: convert postman collections to v2.1.0 format
[hc2vpp.git] / lisp / gpe_postman_collection.json
1 {
2         "info": {
3                 "_postman_id": "71b7e698-4b8c-0ad6-38af-8304b6a5c4e0",
4                 "name": "Lisp gpe RESTCONF collection",
5                 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6         },
7         "item": [
8                 {
9                         "_postman_id": "69973200-c6fd-444e-8212-e6e927ea4156",
10                         "name": "Native entries",
11                         "description": "",
12                         "item": [
13                                 {
14                                         "_postman_id": "c78fc116-dc68-4668-a82b-ebac3aff2818",
15                                         "name": "Add table with entries",
16                                         "request": {
17                                                 "method": "PUT",
18                                                 "header": [
19                                                         {
20                                                                 "key": "Authorization",
21                                                                 "value": "Basic YWRtaW46YWRtaW4="
22                                                         },
23                                                         {
24                                                                 "key": "Content-Type",
25                                                                 "value": "application/json"
26                                                         }
27                                                 ],
28                                                 "body": {
29                                                         "mode": "raw",
30                                                         "raw": "{\n\t\"native-forward-paths-table\":{\n\t  \"table-id\":\"4\",\n\t  \"native-forward-path\":[\n\t  \t{\n\t  \t\t\"next-hop-address\":\"192.168.2.1\",\n\t  \t\t\"next-hop-interface\":\"local0\"\n\t  \t},\n\t  \t{\n\t  \t\t\"next-hop-address\":\"192.168.3.1\"\n\t  \t},\n\t  \t{\n\t  \t\t\"next-hop-address\":\"2001:0db8:0a0b:12f0:0000:0000:0000:0001\"\n\t  \t}\n\t  \t]\n\t}\n}"
31                                                 },
32                                                 "url": {
33                                                         "raw": "http://localhost:8183/restconf/config/gpe:native-forward-paths-tables/native-forward-paths-table/4",
34                                                         "protocol": "http",
35                                                         "host": [
36                                                                 "localhost"
37                                                         ],
38                                                         "port": "8183",
39                                                         "path": [
40                                                                 "restconf",
41                                                                 "config",
42                                                                 "gpe:native-forward-paths-tables",
43                                                                 "native-forward-paths-table",
44                                                                 "4"
45                                                         ]
46                                                 }
47                                         },
48                                         "response": []
49                                 },
50                                 {
51                                         "_postman_id": "3f93c8db-06c3-49df-bb03-24a74578461c",
52                                         "name": "Get table 4",
53                                         "request": {
54                                                 "method": "PUT",
55                                                 "header": [
56                                                         {
57                                                                 "key": "Authorization",
58                                                                 "value": "Basic YWRtaW46YWRtaW4="
59                                                         },
60                                                         {
61                                                                 "key": "Content-Type",
62                                                                 "value": "application/json"
63                                                         }
64                                                 ],
65                                                 "body": {
66                                                         "mode": "raw",
67                                                         "raw": "{\n\t\"native-forward-paths-table\":{\n\t  \"table-id\":\"4\",\n\t  \"native-forward-path\":[\n\t  \t{\n\t  \t\t\"next-hop-address\":\"192.168.2.1\",\n\t  \t\t\"next-hop-interface\":\"local0\"\n\t  \t},\n\t  \t{\n\t  \t\t\"next-hop-address\":\"192.168.3.1\"\n\t  \t},\n\t  \t{\n\t  \t\t\"next-hop-address\":\"2001:0db8:0a0b:12f0:0000:0000:0000:0001\"\n\t  \t}\n\t  \t]\n\t}\n}"
68                                                 },
69                                                 "url": {
70                                                         "raw": "http://localhost:8183/restconf/config/gpe:native-forward-paths-tables/native-forward-paths-table/4",
71                                                         "protocol": "http",
72                                                         "host": [
73                                                                 "localhost"
74                                                         ],
75                                                         "port": "8183",
76                                                         "path": [
77                                                                 "restconf",
78                                                                 "config",
79                                                                 "gpe:native-forward-paths-tables",
80                                                                 "native-forward-paths-table",
81                                                                 "4"
82                                                         ]
83                                                 }
84                                         },
85                                         "response": []
86                                 }
87                         ]
88                 },
89                 {
90                         "_postman_id": "a7939122-f5a8-4e1f-88a3-67537467fc4a",
91                         "name": "ctx",
92                         "request": {
93                                 "method": "GET",
94                                 "header": [
95                                         {
96                                                 "key": "Authorization",
97                                                 "value": "Basic YWRtaW46YWRtaW4="
98                                         },
99                                         {
100                                                 "key": "Content-Type",
101                                                 "value": "application/json"
102                                         }
103                                 ],
104                                 "body": {
105                                         "mode": "raw",
106                                         "raw": "{\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}"
107                                 },
108                                 "url": {
109                                         "raw": "http://localhost:8183/restconf/operational/naming-context:contexts",
110                                         "protocol": "http",
111                                         "host": [
112                                                 "localhost"
113                                         ],
114                                         "port": "8183",
115                                         "path": [
116                                                 "restconf",
117                                                 "operational",
118                                                 "naming-context:contexts"
119                                         ]
120                                 }
121                         },
122                         "response": []
123                 },
124                 {
125                         "_postman_id": "f9a1830d-aa3e-4def-8b72-a3fb22dcf73d",
126                         "name": "Enable gpe",
127                         "request": {
128                                 "method": "PUT",
129                                 "header": [
130                                         {
131                                                 "key": "Authorization",
132                                                 "value": "Basic YWRtaW46YWRtaW4="
133                                         },
134                                         {
135                                                 "key": "Content-Type",
136                                                 "value": "application/json"
137                                         }
138                                 ],
139                                 "body": {
140                                         "mode": "raw",
141                                         "raw": "{\n  \"gpe\":{\n    \"gpe-feature-data\":{\n      \"enable\":true\n    }\n  }\n}"
142                                 },
143                                 "url": {
144                                         "raw": "http://localhost:8183/restconf/config/gpe:gpe",
145                                         "protocol": "http",
146                                         "host": [
147                                                 "localhost"
148                                         ],
149                                         "port": "8183",
150                                         "path": [
151                                                 "restconf",
152                                                 "config",
153                                                 "gpe:gpe"
154                                         ]
155                                 },
156                                 "description": "vppstl gpe enable\n\n to verify\n\nvppctl show lisp status"
157                         },
158                         "response": []
159                 },
160                 {
161                         "_postman_id": "c4323077-6a62-4670-a1d4-1e3da4bad1cb",
162                         "name": "Add gpe entry - positive mapping",
163                         "request": {
164                                 "method": "PUT",
165                                 "header": [
166                                         {
167                                                 "key": "Authorization",
168                                                 "value": "Basic YWRtaW46YWRtaW4="
169                                         },
170                                         {
171                                                 "key": "Content-Type",
172                                                 "value": "application/json"
173                                         }
174                                 ],
175                                 "body": {
176                                         "mode": "raw",
177                                         "raw": "{\n  \"gpe-entry\":\n  {\n    \"id\":\"gpe-entry-1\",\n    \"dp-table\":\"1\",\n    \"vni\":10,\n    \"local-eid\":{\n      \"address-type\":\"ietf-lisp-address-types:ipv4-prefix-afi\",\n           \"virtual-network-id\":\"10\",\n           \"ipv4-prefix\":\"192.168.2.1/24\"\n    },\n    \"remote-eid\":{\n      \"address-type\":\"ietf-lisp-address-types:ipv4-prefix-afi\",\n           \"virtual-network-id\":\"10\",\n           \"ipv4-prefix\":\"192.168.3.1/24\"\n    },\n    \"locator-pair\":[\n      {\n         \"local-locator\":\"192.168.7.7\",\n          \"remote-locator\":\"192.168.7.8\",\n          \"weight\":3\n      },\n      {\n          \"local-locator\":\"192.168.9.7\",\n          \"remote-locator\":\"192.168.9.8\",\n          \"weight\":2\n       }  \n    ]\n  }  \n}"
178                                 },
179                                 "url": {
180                                         "raw": "http://localhost:8183/restconf/config/gpe:gpe/gpe-feature-data/gpe-entry-table/gpe-entry/gpe-entry-1",
181                                         "protocol": "http",
182                                         "host": [
183                                                 "localhost"
184                                         ],
185                                         "port": "8183",
186                                         "path": [
187                                                 "restconf",
188                                                 "config",
189                                                 "gpe:gpe",
190                                                 "gpe-feature-data",
191                                                 "gpe-entry-table",
192                                                 "gpe-entry",
193                                                 "gpe-entry-1"
194                                         ]
195                                 },
196                                 "description": "gpe entry add vni 10 vrf 1 leid 192.168.2.1/24 reid 192.168.3.1/24 loc-pair 192.168.7.7 192.168.7.8 w 3\n\n to verify\n \nshow gpe entry\n"
197                         },
198                         "response": []
199                 },
200                 {
201                         "_postman_id": "8d061c24-a24e-4981-a3bb-35418c9f2231",
202                         "name": "Add gpe entry - negative mapping",
203                         "request": {
204                                 "method": "PUT",
205                                 "header": [
206                                         {
207                                                 "key": "Authorization",
208                                                 "value": "Basic YWRtaW46YWRtaW4="
209                                         },
210                                         {
211                                                 "key": "Content-Type",
212                                                 "value": "application/json"
213                                         }
214                                 ],
215                                 "body": {
216                                         "mode": "raw",
217                                         "raw": "{\n  \"gpe-entry\":\n  {\n    \"id\":\"gpe-entry-2\",\n    \"dp-table\":\"2\",\n    \"vni\":11,\n    \"local-eid\":{\n      \"address-type\":\"ietf-lisp-address-types:ipv4-prefix-afi\",\n           \"virtual-network-id\":\"11\",\n           \"ipv4-prefix\":\"192.100.2.1/24\"\n    },\n    \"remote-eid\":{\n      \"address-type\":\"ietf-lisp-address-types:ipv4-prefix-afi\",\n           \"virtual-network-id\":\"11\",\n           \"ipv4-prefix\":\"192.100.3.1/24\"\n    },\n    \"action\":\"send-map-request\"\n  }  \n}"
218                                 },
219                                 "url": {
220                                         "raw": "http://localhost:8183/restconf/config/gpe:gpe/gpe-feature-data/gpe-entry-table/gpe-entry/gpe-entry-2",
221                                         "protocol": "http",
222                                         "host": [
223                                                 "localhost"
224                                         ],
225                                         "port": "8183",
226                                         "path": [
227                                                 "restconf",
228                                                 "config",
229                                                 "gpe:gpe",
230                                                 "gpe-feature-data",
231                                                 "gpe-entry-table",
232                                                 "gpe-entry",
233                                                 "gpe-entry-2"
234                                         ]
235                                 },
236                                 "description": "gpe entry add vni 10 vrf 1 leid 192.100.2.1/24 reid 192.100.3.1/24 negative action 2\n\n to verify \n \nshow gpe entry"
237                         },
238                         "response": []
239                 },
240                 {
241                         "_postman_id": "19f3a90e-5631-4121-a11e-cc45526bcee4",
242                         "name": "Get gpe status",
243                         "request": {
244                                 "method": "GET",
245                                 "header": [
246                                         {
247                                                 "key": "Authorization",
248                                                 "value": "Basic YWRtaW46YWRtaW4="
249                                         },
250                                         {
251                                                 "key": "Content-Type",
252                                                 "value": "application/json"
253                                         }
254                                 ],
255                                 "body": {
256                                         "mode": "raw",
257                                         "raw": "{\n  \"gpe\":{\n    \"gpe-feature-data\":{\n      \"enable\":true\n    }\n  }\n}"
258                                 },
259                                 "url": {
260                                         "raw": "http://localhost:8183/restconf/operational/gpe:gpe-state",
261                                         "protocol": "http",
262                                         "host": [
263                                                 "localhost"
264                                         ],
265                                         "port": "8183",
266                                         "path": [
267                                                 "restconf",
268                                                 "operational",
269                                                 "gpe:gpe-state"
270                                         ]
271                                 }
272                         },
273                         "response": []
274                 },
275                 {
276                         "_postman_id": "2bb6749e-d6db-4a92-9d2c-127bb64425d5",
277                         "name": "Get gpe entry- positive mapping",
278                         "request": {
279                                 "method": "GET",
280                                 "header": [
281                                         {
282                                                 "key": "Authorization",
283                                                 "value": "Basic YWRtaW46YWRtaW4="
284                                         },
285                                         {
286                                                 "key": "Content-Type",
287                                                 "value": "application/json"
288                                         }
289                                 ],
290                                 "body": {
291                                         "mode": "raw",
292                                         "raw": "{\n  \"gpe\":{\n    \"gpe-feature-data\":{\n      \"enable\":true\n    }\n  }\n}"
293                                 },
294                                 "url": {
295                                         "raw": "http://localhost:8183/restconf/operational/gpe:gpe-state/gpe-feature-data/gpe-entry-table/gpe-entry/gpe-entry-1",
296                                         "protocol": "http",
297                                         "host": [
298                                                 "localhost"
299                                         ],
300                                         "port": "8183",
301                                         "path": [
302                                                 "restconf",
303                                                 "operational",
304                                                 "gpe:gpe-state",
305                                                 "gpe-feature-data",
306                                                 "gpe-entry-table",
307                                                 "gpe-entry",
308                                                 "gpe-entry-1"
309                                         ]
310                                 }
311                         },
312                         "response": []
313                 },
314                 {
315                         "_postman_id": "a45f1a89-181a-4443-9f94-516745fd5d35",
316                         "name": "Get gpe entry- negative mapping",
317                         "request": {
318                                 "method": "GET",
319                                 "header": [
320                                         {
321                                                 "key": "Authorization",
322                                                 "value": "Basic YWRtaW46YWRtaW4="
323                                         },
324                                         {
325                                                 "key": "Content-Type",
326                                                 "value": "application/json"
327                                         }
328                                 ],
329                                 "body": {
330                                         "mode": "raw",
331                                         "raw": "{\n  \"gpe\":{\n    \"gpe-feature-data\":{\n      \"enable\":true\n    }\n  }\n}"
332                                 },
333                                 "url": {
334                                         "raw": "http://localhost:8183/restconf/operational/gpe:gpe-state/gpe-feature-data/gpe-entry-table/gpe-entry/gpe-entry-2",
335                                         "protocol": "http",
336                                         "host": [
337                                                 "localhost"
338                                         ],
339                                         "port": "8183",
340                                         "path": [
341                                                 "restconf",
342                                                 "operational",
343                                                 "gpe:gpe-state",
344                                                 "gpe-feature-data",
345                                                 "gpe-entry-table",
346                                                 "gpe-entry",
347                                                 "gpe-entry-2"
348                                         ]
349                                 }
350                         },
351                         "response": []
352                 },
353                 {
354                         "_postman_id": "14822d53-1a85-4224-a7fb-d73f6038393c",
355                         "name": "Delete gpe entry- positive mapping",
356                         "request": {
357                                 "method": "DELETE",
358                                 "header": [
359                                         {
360                                                 "key": "Authorization",
361                                                 "value": "Basic YWRtaW46YWRtaW4="
362                                         },
363                                         {
364                                                 "key": "Content-Type",
365                                                 "value": "application/json"
366                                         }
367                                 ],
368                                 "body": {
369                                         "mode": "raw",
370                                         "raw": "{\n  \"gpe\":{\n    \"gpe-feature-data\":{\n      \"enable\":true\n    }\n  }\n}"
371                                 },
372                                 "url": {
373                                         "raw": "http://localhost:8183/restconf/config/gpe:gpe/gpe-feature-data/gpe-entry-table/gpe-entry/gpe-entry-1",
374                                         "protocol": "http",
375                                         "host": [
376                                                 "localhost"
377                                         ],
378                                         "port": "8183",
379                                         "path": [
380                                                 "restconf",
381                                                 "config",
382                                                 "gpe:gpe",
383                                                 "gpe-feature-data",
384                                                 "gpe-entry-table",
385                                                 "gpe-entry",
386                                                 "gpe-entry-1"
387                                         ]
388                                 }
389                         },
390                         "response": []
391                 },
392                 {
393                         "_postman_id": "86f7ead7-6add-42f5-9db8-0cb9ad18f7a4",
394                         "name": "Delete gpe entry- negative mapping",
395                         "request": {
396                                 "method": "DELETE",
397                                 "header": [
398                                         {
399                                                 "key": "Authorization",
400                                                 "value": "Basic YWRtaW46YWRtaW4="
401                                         },
402                                         {
403                                                 "key": "Content-Type",
404                                                 "value": "application/json"
405                                         }
406                                 ],
407                                 "body": {
408                                         "mode": "raw",
409                                         "raw": "{\n  \"gpe\":{\n    \"gpe-feature-data\":{\n      \"enable\":true\n    }\n  }\n}"
410                                 },
411                                 "url": {
412                                         "raw": "http://localhost:8183/restconf/config/gpe:gpe/gpe-feature-data/gpe-entry-table/gpe-entry/gpe-entry-2",
413                                         "protocol": "http",
414                                         "host": [
415                                                 "localhost"
416                                         ],
417                                         "port": "8183",
418                                         "path": [
419                                                 "restconf",
420                                                 "config",
421                                                 "gpe:gpe",
422                                                 "gpe-feature-data",
423                                                 "gpe-entry-table",
424                                                 "gpe-entry",
425                                                 "gpe-entry-2"
426                                         ]
427                                 }
428                         },
429                         "response": []
430                 },
431                 {
432                         "_postman_id": "e292e385-6428-48c6-a3f2-2026d408fc1b",
433                         "name": "Disable gpe",
434                         "request": {
435                                 "method": "DELETE",
436                                 "header": [
437                                         {
438                                                 "key": "Authorization",
439                                                 "value": "Basic YWRtaW46YWRtaW4="
440                                         },
441                                         {
442                                                 "key": "Content-Type",
443                                                 "value": "application/json"
444                                         }
445                                 ],
446                                 "body": {
447                                         "mode": "raw",
448                                         "raw": "{\n  \"gpe\":{\n    \"gpe-feature-data\":{\n      \"enable\":true\n    }\n  }\n}"
449                                 },
450                                 "url": {
451                                         "raw": "http://localhost:8183/restconf/config/gpe:gpe",
452                                         "protocol": "http",
453                                         "host": [
454                                                 "localhost"
455                                         ],
456                                         "port": "8183",
457                                         "path": [
458                                                 "restconf",
459                                                 "config",
460                                                 "gpe:gpe"
461                                         ]
462                                 }
463                         },
464                         "response": []
465                 }
466         ]
467 }