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 /ioam | |
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 'ioam')
-rw-r--r-- | ioam/ioam_postman_collection.json | 115 | ||||
-rw-r--r-- | ioam/ioam_postman_collection_v2.0.0.json | 136 |
2 files changed, 223 insertions, 28 deletions
diff --git a/ioam/ioam_postman_collection.json b/ioam/ioam_postman_collection.json index 17ef05263..aef1f4fe5 100644 --- a/ioam/ioam_postman_collection.json +++ b/ioam/ioam_postman_collection.json @@ -1,33 +1,44 @@ { - "variables": [], "info": { + "_postman_id": "0d7646b3-253c-4d5d-9e65-143c7463d111", "name": "Honeycomb iOAM RESTCONF calls", - "_postman_id": "014389fd-d55b-9b35-ad71-81eda31779bc", "description": "To manage iOAM features on VPP management nodes.", - "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "iaom trace - config", "request": { - "url": "http://localhost:8183/restconf/config/ioam-sb-trace:ioam-trace-config/trace-config/trace", "method": "PUT", "header": [ { "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "" + "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", - "value": "application/json", - "description": "" + "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\"trace-config\":{\n \"trace-config-name\":\"trace\",\n \"acl-name\":\"testAcl\",\n \"trace-type\":31,\n \"trace-num-elt\":3,\n \"trace-tsp\":\"milliseconds\",\n \"trace-op\":\"add\",\n \"trace-app-data\":1234,\n \"data-export-profile-name\":\"dataProfileName\",\n \"transport-encap-profile-name\":\"transProfileName\",\n \"node-id\":1,\n \"node-interfaces\":[\n {\n \"index\":5,\n \"intf-name\":\"GigabitEthernetb/0/0\"\n }\n ]\n }\n}\n" }, + "url": { + "raw": "http://localhost:8183/restconf/config/ioam-sb-trace:ioam-trace-config/trace-config/trace", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "ioam-sb-trace:ioam-trace-config", + "trace-config", + "trace" + ] + }, "description": "Configure ioam trace config on VPP" }, "response": [] @@ -35,24 +46,36 @@ { "name": "iaom trace - oper", "request": { - "url": "http://localhost:8183/restconf/operational/ioam-sb-trace:ioam-trace-config/trace-config/*", "method": "GET", "header": [ { "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "" + "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", - "value": "application/json", - "description": "" + "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\"trace-config\":{\n \"trace-config-name\":\"trace\",\n \"acl-name\":\"testAcl\",\n \"trace-type\":31,\n \"trace-num-elt\":3,\n \"trace-tsp\":\"milliseconds\",\n \"trace-op\":\"add\",\n \"trace-app-data\":1234,\n \"data-export-profile-name\":\"dataProfileName\",\n \"transport-encap-profile-name\":\"transProfileName\",\n \"node-id\":1,\n \"node-interfaces\":[\n {\n \"index\":5,\n \"intf-name\":\"GigabitEthernetb/0/0\"\n }\n ]\n }\n}\n" }, + "url": { + "raw": "http://localhost:8183/restconf/operational/ioam-sb-trace:ioam-trace-config/trace-config/*", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "ioam-sb-trace:ioam-trace-config", + "trace-config", + "*" + ] + }, "description": "Read ioam trace config from VPP" }, "response": [] @@ -60,24 +83,36 @@ { "name": "iaom pot - config", "request": { - "url": "http://localhost:8183/restconf/config/sfc-ioam-sb-pot:pot-profiles/pot-profile-set/potprofile", "method": "PUT", "header": [ { "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "" + "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", - "value": "application/json", - "description": "" + "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\"pot-profile-set\":[\n\t\t{\n\t \"name\":\"potprofile\",\n\t \"path-identifier\":\"ACL\",\n\t \"active-profile-index\":1,\n\t \"pot-profile-list\":[{\n\t \t\"index\":0,\n\t \t\"prime-number\":7,\n\t \t\"secret-share\":1234,\n\t \t\"public-polynomial\":1234,\n\t \t\"lpc\":1234,\n\t \t\"validator\":\"true\",\n\t \t\"validator-key\":1234,\n\t \t\"bitmask\":1111111111\n\t }]\n\t }\n ]\n}\n" }, + "url": { + "raw": "http://localhost:8183/restconf/config/sfc-ioam-sb-pot:pot-profiles/pot-profile-set/potprofile", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "sfc-ioam-sb-pot:pot-profiles", + "pot-profile-set", + "potprofile" + ] + }, "description": "Configure ioam pot config on VPP" }, "response": [] @@ -85,24 +120,38 @@ { "name": "iaom pot - oper", "request": { - "url": "http://localhost:8183/restconf/operational/sfc-ioam-sb-pot:pot-profiles/pot-profile-set/potprofile/pot-profile-list/0", "method": "GET", "header": [ { "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "" + "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", - "value": "application/json", - "description": "" + "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\"trace-config\":{\n \"trace-config-name\":\"trace\",\n \"acl-name\":\"testAcl\",\n \"trace-type\":31,\n \"trace-num-elt\":3,\n \"trace-tsp\":\"milliseconds\",\n \"trace-op\":\"add\",\n \"trace-app-data\":1234,\n \"data-export-profile-name\":\"dataProfileName\",\n \"transport-encap-profile-name\":\"transProfileName\",\n \"node-id\":1,\n \"node-interfaces\":[\n {\n \"index\":5,\n \"intf-name\":\"GigabitEthernetb/0/0\"\n }\n ]\n }\n}\n" }, + "url": { + "raw": "http://localhost:8183/restconf/operational/sfc-ioam-sb-pot:pot-profiles/pot-profile-set/potprofile/pot-profile-list/0", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "sfc-ioam-sb-pot:pot-profiles", + "pot-profile-set", + "potprofile", + "pot-profile-list", + "0" + ] + }, "description": "Read ioam pot config from VPP" }, "response": [] @@ -110,24 +159,34 @@ { "name": "iaom export - config", "request": { - "url": "http://localhost:8183/restconf/config/ioam-sb-export:ioam-export", "method": "PUT", "header": [ { "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "" + "value": "Basic YWRtaW46YWRtaW4=" }, { "key": "Content-Type", - "value": "application/json", - "description": "" + "value": "application/json" } ], "body": { "mode": "raw", "raw": "{ \n\t\"ioam-export\":{\n\t\t\"source-address\":\"127.0.0.1\",\n\t\t\"collector-address\":\"127.0.0.2\",\n\t\t\"disable\":false\n\t}\n}\n" }, + "url": { + "raw": "http://localhost:8183/restconf/config/ioam-sb-export:ioam-export", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "ioam-sb-export:ioam-export" + ] + }, "description": "Configure ioam export config on VPP" }, "response": [] diff --git a/ioam/ioam_postman_collection_v2.0.0.json b/ioam/ioam_postman_collection_v2.0.0.json new file mode 100644 index 000000000..17ef05263 --- /dev/null +++ b/ioam/ioam_postman_collection_v2.0.0.json @@ -0,0 +1,136 @@ +{ + "variables": [], + "info": { + "name": "Honeycomb iOAM RESTCONF calls", + "_postman_id": "014389fd-d55b-9b35-ad71-81eda31779bc", + "description": "To manage iOAM features on VPP management nodes.", + "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" + }, + "item": [ + { + "name": "iaom trace - config", + "request": { + "url": "http://localhost:8183/restconf/config/ioam-sb-trace:ioam-trace-config/trace-config/trace", + "method": "PUT", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "" + }, + { + "key": "Content-Type", + "value": "application/json", + "description": "" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"trace-config\":{\n \"trace-config-name\":\"trace\",\n \"acl-name\":\"testAcl\",\n \"trace-type\":31,\n \"trace-num-elt\":3,\n \"trace-tsp\":\"milliseconds\",\n \"trace-op\":\"add\",\n \"trace-app-data\":1234,\n \"data-export-profile-name\":\"dataProfileName\",\n \"transport-encap-profile-name\":\"transProfileName\",\n \"node-id\":1,\n \"node-interfaces\":[\n {\n \"index\":5,\n \"intf-name\":\"GigabitEthernetb/0/0\"\n }\n ]\n }\n}\n" + }, + "description": "Configure ioam trace config on VPP" + }, + "response": [] + }, + { + "name": "iaom trace - oper", + "request": { + "url": "http://localhost:8183/restconf/operational/ioam-sb-trace:ioam-trace-config/trace-config/*", + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "" + }, + { + "key": "Content-Type", + "value": "application/json", + "description": "" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"trace-config\":{\n \"trace-config-name\":\"trace\",\n \"acl-name\":\"testAcl\",\n \"trace-type\":31,\n \"trace-num-elt\":3,\n \"trace-tsp\":\"milliseconds\",\n \"trace-op\":\"add\",\n \"trace-app-data\":1234,\n \"data-export-profile-name\":\"dataProfileName\",\n \"transport-encap-profile-name\":\"transProfileName\",\n \"node-id\":1,\n \"node-interfaces\":[\n {\n \"index\":5,\n \"intf-name\":\"GigabitEthernetb/0/0\"\n }\n ]\n }\n}\n" + }, + "description": "Read ioam trace config from VPP" + }, + "response": [] + }, + { + "name": "iaom pot - config", + "request": { + "url": "http://localhost:8183/restconf/config/sfc-ioam-sb-pot:pot-profiles/pot-profile-set/potprofile", + "method": "PUT", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "" + }, + { + "key": "Content-Type", + "value": "application/json", + "description": "" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"pot-profile-set\":[\n\t\t{\n\t \"name\":\"potprofile\",\n\t \"path-identifier\":\"ACL\",\n\t \"active-profile-index\":1,\n\t \"pot-profile-list\":[{\n\t \t\"index\":0,\n\t \t\"prime-number\":7,\n\t \t\"secret-share\":1234,\n\t \t\"public-polynomial\":1234,\n\t \t\"lpc\":1234,\n\t \t\"validator\":\"true\",\n\t \t\"validator-key\":1234,\n\t \t\"bitmask\":1111111111\n\t }]\n\t }\n ]\n}\n" + }, + "description": "Configure ioam pot config on VPP" + }, + "response": [] + }, + { + "name": "iaom pot - oper", + "request": { + "url": "http://localhost:8183/restconf/operational/sfc-ioam-sb-pot:pot-profiles/pot-profile-set/potprofile/pot-profile-list/0", + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "" + }, + { + "key": "Content-Type", + "value": "application/json", + "description": "" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\"trace-config\":{\n \"trace-config-name\":\"trace\",\n \"acl-name\":\"testAcl\",\n \"trace-type\":31,\n \"trace-num-elt\":3,\n \"trace-tsp\":\"milliseconds\",\n \"trace-op\":\"add\",\n \"trace-app-data\":1234,\n \"data-export-profile-name\":\"dataProfileName\",\n \"transport-encap-profile-name\":\"transProfileName\",\n \"node-id\":1,\n \"node-interfaces\":[\n {\n \"index\":5,\n \"intf-name\":\"GigabitEthernetb/0/0\"\n }\n ]\n }\n}\n" + }, + "description": "Read ioam pot config from VPP" + }, + "response": [] + }, + { + "name": "iaom export - config", + "request": { + "url": "http://localhost:8183/restconf/config/ioam-sb-export:ioam-export", + "method": "PUT", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "" + }, + { + "key": "Content-Type", + "value": "application/json", + "description": "" + } + ], + "body": { + "mode": "raw", + "raw": "{ \n\t\"ioam-export\":{\n\t\t\"source-address\":\"127.0.0.1\",\n\t\t\"collector-address\":\"127.0.0.2\",\n\t\t\"disable\":false\n\t}\n}\n" + }, + "description": "Configure ioam export config on VPP" + }, + "response": [] + } + ] +}
\ No newline at end of file |