diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-06-01 07:28:47 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-06-01 10:40:47 +0200 |
commit | fe9af79a0cc1a980ac0dfb35a679f4e8565a5ef5 (patch) | |
tree | 7cca3da294de20ac91f8dac7359103d291a17e2c /v3po/span_postman_collection.json | |
parent | a3e02660522fb0c97f77f1123cc4058d589a4095 (diff) |
HC2VPP-339: convert postman collections to v2.1.0 format
Mantaining postman collections in v1 format is difficult
due to UID strings.
Postman collection v2 fixes the issue and many others, see
http://blog.getpostman.com/2015/06/05/travelogue-of-postman-collection-format-v2/
Collections in v1 format, were converted
using postman-collection-transformer.
Output was transformed using JSON.stringify with space='\t',
to be compliant with Postman application which does not support
spaces for indentation.
Coverted collections were tested using Postman v6.1.3.
Previous version of postman collections were renamed
to *_v1.0.0.json or *_v2.0.0.json.
Removal is planned in 18.10 (HC2VPP-338).
Change-Id: I6caf496293fccc1f9aadcdece668b5200fe07122
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/span_postman_collection.json')
-rw-r--r-- | v3po/span_postman_collection.json | 404 |
1 files changed, 255 insertions, 149 deletions
diff --git a/v3po/span_postman_collection.json b/v3po/span_postman_collection.json index 412b44940..dbb276f0b 100644 --- a/v3po/span_postman_collection.json +++ b/v3po/span_postman_collection.json @@ -1,160 +1,266 @@ { - "id": "b30b26ab-fd5f-368f-713a-4c72315cf663", - "name": "Span interface/subinterface collection", - "description": "Provides model request to define pot mirroring for interfaces and sub-interfaces", - "order": [], - "folders": [ + "info": { + "_postman_id": "b30b26ab-fd5f-368f-713a-4c72315cf663", + "name": "Span interface/subinterface collection", + "description": "Provides model request to define pot mirroring for interfaces and sub-interfaces", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ { - "id": "cc874576-92fd-fa49-20fe-482333b895c0", + "_postman_id": "60b007c3-5051-41ea-8551-d55af4e6368c", "name": "Interface <==> Interface", "description": "", - "order": [ - "b2342499-fbb3-02d1-bc7d-3c7d515b8cfa", - "67359961-1edf-d25f-63d2-ff84552da924", - "67a1966d-ec28-c131-7fdf-0d8e24ac2b42" - ], - "owner": 0 + "item": [ + { + "_postman_id": "58bdf949-ea9d-4ba6-a00f-98082ca13c02", + "name": "Set port mirroring local0 -> GigabiteEthernet0/8/0", + "request": { + "method": "PUT", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"local0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/span", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "ietf-interfaces:interfaces", + "interface", + "GigabitEthernet0%2F8%2F0", + "span" + ] + }, + "description": "set span src local0 dst GigabiteEthernet0/8/0" + }, + "response": [] + }, + { + "_postman_id": "397737f1-a9b1-4eca-8cd5-7f629b5fd950", + "name": "Read port mirroring", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/GigabitEthernet0%2F8%2F0/span", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "ietf-interfaces:interfaces-state", + "interface", + "GigabitEthernet0%2F8%2F0", + "span" + ] + }, + "description": "show span" + }, + "response": [] + }, + { + "_postman_id": "45f66ad7-c241-4d2a-bacf-cc3d5d4c54aa", + "name": "Delete port mirroring local0 -> GigabiteEthernet0/8/0", + "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/GigabitEthernet0%2F8%2F0/span", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "ietf-interfaces:interfaces", + "interface", + "GigabitEthernet0%2F8%2F0", + "span" + ] + } + }, + "response": [] + } + ] }, { - "id": "d26fa438-e4f6-ad96-b92a-ebb509d4ca66", + "_postman_id": "9b32a9d3-72cd-4c5e-ab04-1f1ec2908448", "name": "Interface <==> SubInterface", "description": "", - "order": [ - "ffd3adcd-345f-d8fb-0393-22ad78528083", - "03a5c3d7-e3c1-0862-4a4c-806ac7282cb5", - "59ae66fd-bd64-e0bd-924c-b9469db447af" - ], - "owner": 0 - } - ], - "timestamp": 1494480653049, - "owner": 0, - "public": false, - "requests": [ - { - "id": "03a5c3d7-e3c1-0862-4a4c-806ac7282cb5", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span-state", - "preRequestScript": "", - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1494481976252, - "name": "Read port mirroring", - "description": "set span src local0 dst GigabiteEthernet0/8/0", - "collectionId": "b30b26ab-fd5f-368f-713a-4c72315cf663", - "responses": [], - "rawModeData": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" - }, - { - "id": "59ae66fd-bd64-e0bd-924c-b9469db447af", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span", - "preRequestScript": "", - "pathVariables": {}, - "method": "DELETE", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1494481990266, - "name": "Delete port mirroring", - "description": "set span src local0 dst GigabiteEthernet0/8/0", - "collectionId": "b30b26ab-fd5f-368f-713a-4c72315cf663", - "responses": [], - "rawModeData": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" - }, - { - "id": "67359961-1edf-d25f-63d2-ff84552da924", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/GigabitEthernet0%2F8%2F0/span", - "preRequestScript": "", - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1477908227905, - "name": "Read port mirroring", - "description": "show span", - "collectionId": "b30b26ab-fd5f-368f-713a-4c72315cf663", - "responses": [], - "rawModeData": "", - "folder": "cc874576-92fd-fa49-20fe-482333b895c0", - "isFromCollection": true, - "collectionRequestId": "67359961-1edf-d25f-63d2-ff84552da924" - }, - { - "id": "67a1966d-ec28-c131-7fdf-0d8e24ac2b42", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/span", - "preRequestScript": "", - "pathVariables": {}, - "method": "DELETE", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1477907954064, - "name": "Delete port mirroring local0 -> GigabiteEthernet0/8/0", - "description": "", - "collectionId": "b30b26ab-fd5f-368f-713a-4c72315cf663", - "responses": [], - "rawModeData": "", - "folder": "cc874576-92fd-fa49-20fe-482333b895c0" - }, - { - "id": "b2342499-fbb3-02d1-bc7d-3c7d515b8cfa", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/span", - "preRequestScript": "", - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1477905258870, - "name": "Set port mirroring local0 -> GigabiteEthernet0/8/0", - "description": "set span src local0 dst GigabiteEthernet0/8/0", - "collectionId": "b30b26ab-fd5f-368f-713a-4c72315cf663", - "responses": [], - "rawModeData": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"local0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}", - "folder": "cc874576-92fd-fa49-20fe-482333b895c0" - }, - { - "id": "ffd3adcd-345f-d8fb-0393-22ad78528083", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span", - "preRequestScript": "", - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1494481863201, - "name": "Set port mirroring GigabitEthernet0/8/0 to GigabitEthernet0/8/0.1", - "description": "set span src local0 dst GigabiteEthernet0/8/0", - "collectionId": "b30b26ab-fd5f-368f-713a-4c72315cf663", - "responses": [], - "rawModeData": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" + "item": [ + { + "_postman_id": "a34159b3-e209-4dee-b26a-40705dd0987e", + "name": "Set port mirroring GigabitEthernet0/8/0 to GigabitEthernet0/8/0.1", + "request": { + "method": "PUT", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "ietf-interfaces:interfaces", + "interface", + "GigabitEthernet0%2F8%2F0", + "vpp-vlan:sub-interfaces", + "sub-interface", + "1", + "span" + ] + }, + "description": "set span src local0 dst GigabiteEthernet0/8/0" + }, + "response": [] + }, + { + "_postman_id": "c1ff26ff-2632-4f21-bec5-40e374e97930", + "name": "Read port mirroring", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" + }, + "url": { + "raw": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span-state", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "ietf-interfaces:interfaces-state", + "interface", + "GigabitEthernet0%2F8%2F0", + "vpp-vlan:sub-interfaces", + "sub-interface", + "1", + "span-state" + ] + }, + "description": "set span src local0 dst GigabiteEthernet0/8/0" + }, + "response": [] + }, + { + "_postman_id": "d47857c5-983b-4fbf-a235-cc48653cbf2d", + "name": "Delete port mirroring", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n \r\n \"span\": {\r\n \t\"mirrored-interfaces\": {\r\n \t\t\"mirrored-interface\": [{\"iface-ref\":\"GigabitEthernet0/8/0\",\"state\":\"receive\"}]\r\n \t}\r\n }\r\n \r\n}" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/GigabitEthernet0%2F8%2F0/vpp-vlan:sub-interfaces/sub-interface/1/span", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "ietf-interfaces:interfaces", + "interface", + "GigabitEthernet0%2F8%2F0", + "vpp-vlan:sub-interfaces", + "sub-interface", + "1", + "span" + ] + }, + "description": "set span src local0 dst GigabiteEthernet0/8/0" + }, + "response": [] + } + ] } ] }
\ No newline at end of file |