From fe9af79a0cc1a980ac0dfb35a679f4e8565a5ef5 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Fri, 1 Jun 2018 07:28:47 +0200 Subject: 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 --- examples/docker/bgp_demo/postman_collection.json | 856 +++++++++++++++-------- 1 file changed, 568 insertions(+), 288 deletions(-) (limited to 'examples/docker/bgp_demo/postman_collection.json') diff --git a/examples/docker/bgp_demo/postman_collection.json b/examples/docker/bgp_demo/postman_collection.json index 545a9d78c..825f41820 100644 --- a/examples/docker/bgp_demo/postman_collection.json +++ b/examples/docker/bgp_demo/postman_collection.json @@ -1,299 +1,579 @@ { - "id": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "name": "Hc2vpp2 BGP configuration examples", - "description": "Examples of BGP configration based on \nhttp://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html", - "order": [], - "folders": [ + "info": { + "_postman_id": "c632c61d-2681-b9ea-23b7-124a1f228e46", + "name": "Hc2vpp2 BGP configuration examples", + "description": "Examples of BGP configration based on \nhttp://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ { - "id": "87048983-134d-ae10-16a1-c28b3e6cfe67", + "_postman_id": "96e692f9-283d-458d-85ae-ef1d1e020c9b", "name": "vpp1", "description": "", - "order": [ - "1af04e52-88fe-eda0-c175-203d6cdd6ea8", - "6c8a9854-1eec-bdcd-2a7e-fb2dadd79f1d", - "33d6cc8b-80d7-4493-ab29-a5d4df4f9709", - "fc913f70-aaa5-fed6-fe00-dc93ed59ffb2", - "36627e62-925f-3de7-7943-d10402ceb160" - ], - "owner": 0 + "item": [ + { + "_postman_id": "0812238b-1a3b-4d85-ab73-a7e735e14fc1", + "name": "Add eBGP peer configured on vpp2", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"neighbor\": {\n \"neighbor-address\": \"10.12.1.2\",\n \"timers\": {\n \"config\": {\n \"hold-time\": 90,\n \"connect-retry\": 10\n }\n },\n \"config\": {\n \"peer-type\": \"EXTERNAL\",\n \"peer-as\": \"65002\"\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 1790,\n \"passive-mode\": true\n }\n },\n \"afi-safis\": {\n \"afi-safi\": [\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n },\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-LABELLED-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "https://172.17.0.2:8445/restconf/config/openconfig-network-instance:network-instances/network-instance/global-bgp/openconfig-network-instance:protocols/protocol/openconfig-policy-types:BGP/hc-bgp-instance/bgp/bgp-openconfig-extensions:neighbors/neighbor/10.12.1.2", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "2" + ], + "port": "8445", + "path": [ + "restconf", + "config", + "openconfig-network-instance:network-instances", + "network-instance", + "global-bgp", + "openconfig-network-instance:protocols", + "protocol", + "openconfig-policy-types:BGP", + "hc-bgp-instance", + "bgp", + "bgp-openconfig-extensions:neighbors", + "neighbor", + "10.12.1.2" + ] + }, + "description": "Based on http://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html#external-peering-configuration" + }, + "response": [] + }, + { + "_postman_id": "16382f3e-ba07-4021-a5d4-37979b5338d7", + "name": "Show vpp2 peer state", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" + }, + "url": { + "raw": "https://172.17.0.2:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F10.12.1.2", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "2" + ], + "port": "8445", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance", + "peer", + "bgp:%2F%2F10.12.1.2" + ] + } + }, + "response": [] + }, + { + "_postman_id": "7fdc7977-f23c-4587-a729-b31c53565f6c", + "name": "Show Loc-RIB of vpp1", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 10.25.1.9\n \n application-peers\n \n" + }, + "url": { + "raw": "https://172.17.0.2:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/loc-rib", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "2" + ], + "port": "8445", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance", + "loc-rib" + ] + } + }, + "response": [] + }, + { + "_postman_id": "1e53c617-cb0d-4fd8-b7c9-ee420ba3ea8b", + "name": "Show BGP configuration on vpp1", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" + }, + "url": { + "raw": "https://172.17.0.2:8445/restconf/config/openconfig-network-instance:network-instances/", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "2" + ], + "port": "8445", + "path": [ + "restconf", + "config", + "openconfig-network-instance:network-instances", + "" + ] + } + }, + "response": [] + }, + { + "_postman_id": "97a3b6b8-0e9a-4e5e-860c-52a48765d67d", + "name": "Show HC BGP state on vpp1", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" + }, + "url": { + "raw": "https://172.17.0.2:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "2" + ], + "port": "8445", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance" + ] + } + }, + "response": [] + } + ] }, { - "id": "f294a1aa-4a81-0271-3d70-db7627278200", + "_postman_id": "86cca2af-f50c-4d77-ad89-fd48f60600cf", "name": "vpp2", "description": "", - "order": [ - "e5d0baab-866f-4327-8c45-53587edb8e42", - "6dd77ec0-b213-adcc-9456-6e27b6455496", - "e3954b49-2f90-4868-a388-2c58b7951afe", - "79912b82-12fb-9210-6257-bbf0f4c05a7e", - "2026a32e-3f9e-3da4-1e68-6a659d91b557", - "b7339b36-1c6a-bad6-707a-cc010e5d8e7d", - "53b4f9f5-54e6-cd98-cec5-ad925d6c561d", - "90d5c0b1-572b-924e-2ccb-e5cd61b8e1e0" - ], - "owner": 0, - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46" - } - ], - "timestamp": 1515051953592, - "owner": 0, - "public": false, - "requests": [ - { - "id": "1af04e52-88fe-eda0-c175-203d6cdd6ea8", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.2:8445/restconf/config/openconfig-network-instance:network-instances/network-instance/global-bgp/openconfig-network-instance:protocols/protocol/openconfig-policy-types:BGP/hc-bgp-instance/bgp/bgp-openconfig-extensions:neighbors/neighbor/10.12.1.2", - "preRequestScript": null, - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515414858820, - "name": "Add eBGP peer configured on vpp2", - "description": "Based on http://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html#external-peering-configuration", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "{\n \"neighbor\": {\n \"neighbor-address\": \"10.12.1.2\",\n \"timers\": {\n \"config\": {\n \"hold-time\": 90,\n \"connect-retry\": 10\n }\n },\n \"config\": {\n \"peer-type\": \"EXTERNAL\",\n \"peer-as\": \"65002\"\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 1790,\n \"passive-mode\": true\n }\n },\n \"afi-safis\": {\n \"afi-safi\": [\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n },\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-LABELLED-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n }\n ]\n }\n }\n}" - }, - { - "id": "2026a32e-3f9e-3da4-1e68-6a659d91b557", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.3:8445/restconf/config/openconfig-network-instance:network-instances/network-instance/global-bgp/openconfig-network-instance:protocols/protocol/openconfig-policy-types:BGP/hc-bgp-instance/bgp/bgp-openconfig-extensions:neighbors/neighbor/10.25.1.9", - "preRequestScript": null, - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515415282689, - "name": "Add application peer", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "{\n \"neighbor\": {\n \"neighbor-address\": \"10.25.1.9\",\n \"config\": {\n \"peer-group\": \"application-peers\"\n },\n \"afi-safis\": {\n \"afi-safi\": [\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n },\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-LABELLED-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n }\n ]\n }\n }\n}" - }, - { - "id": "33d6cc8b-80d7-4493-ab29-a5d4df4f9709", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.2:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/loc-rib", - "pathVariables": {}, - "preRequestScript": null, - "method": "GET", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "data": [], - "dataMode": "raw", - "name": "Show Loc-RIB of vpp1", - "description": "", - "descriptionFormat": "html", - "time": 1515415010644, - "version": 2, - "responses": [], - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "folder": "87048983-134d-ae10-16a1-c28b3e6cfe67", - "rawModeData": "\n 10.25.1.9\n \n application-peers\n \n" - }, - { - "id": "36627e62-925f-3de7-7943-d10402ceb160", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.2:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance", - "preRequestScript": null, - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515417781413, - "name": "Show HC BGP state on vpp1", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "rawModeData": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" - }, - { - "id": "53b4f9f5-54e6-cd98-cec5-ad925d6c561d", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.3:8445/restconf/config/openconfig-network-instance:network-instances/", - "preRequestScript": null, - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515417814797, - "name": "Show BGP configuration on vpp2", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" - }, - { - "id": "6c8a9854-1eec-bdcd-2a7e-fb2dadd79f1d", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.2:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F10.12.1.2", - "preRequestScript": null, - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515414946071, - "name": "Show vpp2 peer state", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" - }, - { - "id": "6dd77ec0-b213-adcc-9456-6e27b6455496", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "https://172.17.0.3:8445/restconf/operational/ietf-interfaces:interfaces-state/interface/loop0", - "preRequestScript": "", - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515419116647, - "name": "Show loop0 state", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"enabled\": true,\n \"type\": \"v3po:loopback\",\n \"ietf-ip:ipv4\": {\n \"address\": [\n {\n \"ip\": \"10.100.1.1\",\n \"prefix-length\": 24\n }\n ]\n },\n \"v3po:ethernet\": {\n \"mtu\": 9216\n }\n }\n ]\n}" - }, - { - "id": "79912b82-12fb-9210-6257-bbf0f4c05a7e", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.3:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F10.12.1.1", - "preRequestScript": null, - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515414975231, - "name": "Show vpp1 peer state", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" - }, - { - "id": "90d5c0b1-572b-924e-2ccb-e5cd61b8e1e0", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.3:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance", - "preRequestScript": null, - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515417838727, - "name": "Show HC BGP state on vpp2", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "rawModeData": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" - }, - { - "id": "b7339b36-1c6a-bad6-707a-cc010e5d8e7d", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.3:8445/restconf/config/bgp-rib:application-rib/10.25.1.9/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes/ipv4-route/10.100.1.1%2F24/0", - "preRequestScript": null, - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515419061792, - "name": "Announce route to loop0", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "{\n \"bgp-inet:ipv4-route\": [\n {\n \"prefix\": \"10.100.1.1/24\",\n \"path-id\": 0,\n \"attributes\": {\n \"origin\": {\n \"value\": \"igp\"\n },\n \"as-path\": {},\n \"local-pref\": {\n \"pref\": 100\n },\n \"ipv4-next-hop\": {\n \"global\": \"10.12.1.2\"\n }\n }\n }\n ]\n}" - }, - { - "id": "e3954b49-2f90-4868-a388-2c58b7951afe", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.3:8445/restconf/config/openconfig-network-instance:network-instances/network-instance/global-bgp/openconfig-network-instance:protocols/protocol/openconfig-policy-types:BGP/hc-bgp-instance/bgp/bgp-openconfig-extensions:neighbors/neighbor/10.12.1.1", - "preRequestScript": null, - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515414866281, - "name": "Add eBGP peer configured on vpp1", - "description": "Based on http://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html#external-peering-configuration", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "{\n \"neighbor\": {\n \"neighbor-address\": \"10.12.1.1\",\n \"timers\": {\n \"config\": {\n \"hold-time\": 90,\n \"connect-retry\": 10\n }\n },\n \"config\": {\n \"peer-type\": \"EXTERNAL\",\n \"peer-as\": \"65001\"\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 1790,\n \"passive-mode\": false\n }\n },\n \"afi-safis\": {\n \"afi-safi\": [\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n },\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-LABELLED-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n }\n ]\n }\n }\n}" - }, - { - "id": "e5d0baab-866f-4327-8c45-53587edb8e42", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "https://172.17.0.3:8445/restconf/config/ietf-interfaces:interfaces/interface/loop0", - "preRequestScript": "", - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1515420990010, - "name": "Configure loop0", - "description": "", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "responses": [], - "rawModeData": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"enabled\": true,\n \"type\": \"v3po:loopback\",\n \"ietf-ip:ipv4\": {\n \"address\": [\n {\n \"ip\": \"10.100.1.1\",\n \"prefix-length\": 24\n }\n ]\n },\n \"loopback\": {\n \"mac\" : \"aa:bb:cc:dd:ee:ff\"\n }\n }\n ]\n}" - }, - { - "id": "fc913f70-aaa5-fed6-fe00-dc93ed59ffb2", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "https://172.17.0.2:8445/restconf/config/openconfig-network-instance:network-instances/", - "pathVariables": {}, - "preRequestScript": null, - "method": "GET", - "collectionId": "c632c61d-2681-b9ea-23b7-124a1f228e46", - "data": [], - "dataMode": "raw", - "name": "Show BGP configuration on vpp1", - "description": "", - "descriptionFormat": "html", - "time": 1515415028428, - "version": 2, - "responses": [], - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "folder": "87048983-134d-ae10-16a1-c28b3e6cfe67", - "rawModeData": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" + "item": [ + { + "_postman_id": "6d61484c-434e-457c-8434-2aac9b89a639", + "name": "Configure loop0", + "request": { + "method": "PUT", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"enabled\": true,\n \"type\": \"v3po:loopback\",\n \"ietf-ip:ipv4\": {\n \"address\": [\n {\n \"ip\": \"10.100.1.1\",\n \"prefix-length\": 24\n }\n ]\n },\n \"loopback\": {\n \"mac\" : \"aa:bb:cc:dd:ee:ff\"\n }\n }\n ]\n}" + }, + "url": { + "raw": "https://172.17.0.3:8445/restconf/config/ietf-interfaces:interfaces/interface/loop0", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "3" + ], + "port": "8445", + "path": [ + "restconf", + "config", + "ietf-interfaces:interfaces", + "interface", + "loop0" + ] + } + }, + "response": [] + }, + { + "_postman_id": "696883cb-72c1-42bc-b68d-d9066bcb6bcf", + "name": "Show loop0 state", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"enabled\": true,\n \"type\": \"v3po:loopback\",\n \"ietf-ip:ipv4\": {\n \"address\": [\n {\n \"ip\": \"10.100.1.1\",\n \"prefix-length\": 24\n }\n ]\n },\n \"v3po:ethernet\": {\n \"mtu\": 9216\n }\n }\n ]\n}" + }, + "url": { + "raw": "https://172.17.0.3:8445/restconf/operational/ietf-interfaces:interfaces-state/interface/loop0", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "3" + ], + "port": "8445", + "path": [ + "restconf", + "operational", + "ietf-interfaces:interfaces-state", + "interface", + "loop0" + ] + } + }, + "response": [] + }, + { + "_postman_id": "f98c893b-68ea-4ca8-8231-77997825c97c", + "name": "Add eBGP peer configured on vpp1", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"neighbor\": {\n \"neighbor-address\": \"10.12.1.1\",\n \"timers\": {\n \"config\": {\n \"hold-time\": 90,\n \"connect-retry\": 10\n }\n },\n \"config\": {\n \"peer-type\": \"EXTERNAL\",\n \"peer-as\": \"65001\"\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 1790,\n \"passive-mode\": false\n }\n },\n \"afi-safis\": {\n \"afi-safi\": [\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n },\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-LABELLED-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "https://172.17.0.3:8445/restconf/config/openconfig-network-instance:network-instances/network-instance/global-bgp/openconfig-network-instance:protocols/protocol/openconfig-policy-types:BGP/hc-bgp-instance/bgp/bgp-openconfig-extensions:neighbors/neighbor/10.12.1.1", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "3" + ], + "port": "8445", + "path": [ + "restconf", + "config", + "openconfig-network-instance:network-instances", + "network-instance", + "global-bgp", + "openconfig-network-instance:protocols", + "protocol", + "openconfig-policy-types:BGP", + "hc-bgp-instance", + "bgp", + "bgp-openconfig-extensions:neighbors", + "neighbor", + "10.12.1.1" + ] + }, + "description": "Based on http://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html#external-peering-configuration" + }, + "response": [] + }, + { + "_postman_id": "68d52689-86d5-4315-9018-70beb6637d91", + "name": "Show vpp1 peer state", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" + }, + "url": { + "raw": "https://172.17.0.3:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F10.12.1.1", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "3" + ], + "port": "8445", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance", + "peer", + "bgp:%2F%2F10.12.1.1" + ] + } + }, + "response": [] + }, + { + "_postman_id": "dc6e34a1-b788-434b-b0cd-4ad910c08187", + "name": "Add application peer", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"neighbor\": {\n \"neighbor-address\": \"10.25.1.9\",\n \"config\": {\n \"peer-group\": \"application-peers\"\n },\n \"afi-safis\": {\n \"afi-safi\": [\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n },\n {\n \"afi-safi-name\": \"openconfig-bgp-types:IPV4-LABELLED-UNICAST\",\n \"receive\": true,\n \"send-max\": 0\n }\n ]\n }\n }\n}" + }, + "url": { + "raw": "https://172.17.0.3:8445/restconf/config/openconfig-network-instance:network-instances/network-instance/global-bgp/openconfig-network-instance:protocols/protocol/openconfig-policy-types:BGP/hc-bgp-instance/bgp/bgp-openconfig-extensions:neighbors/neighbor/10.25.1.9", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "3" + ], + "port": "8445", + "path": [ + "restconf", + "config", + "openconfig-network-instance:network-instances", + "network-instance", + "global-bgp", + "openconfig-network-instance:protocols", + "protocol", + "openconfig-policy-types:BGP", + "hc-bgp-instance", + "bgp", + "bgp-openconfig-extensions:neighbors", + "neighbor", + "10.25.1.9" + ] + } + }, + "response": [] + }, + { + "_postman_id": "6fd91189-2ae7-4b05-8688-488202df89a8", + "name": "Announce route to loop0", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"bgp-inet:ipv4-route\": [\n {\n \"prefix\": \"10.100.1.1/24\",\n \"path-id\": 0,\n \"attributes\": {\n \"origin\": {\n \"value\": \"igp\"\n },\n \"as-path\": {},\n \"local-pref\": {\n \"pref\": 100\n },\n \"ipv4-next-hop\": {\n \"global\": \"10.12.1.2\"\n }\n }\n }\n ]\n}" + }, + "url": { + "raw": "https://172.17.0.3:8445/restconf/config/bgp-rib:application-rib/10.25.1.9/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes/ipv4-route/10.100.1.1%2F24/0", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "3" + ], + "port": "8445", + "path": [ + "restconf", + "config", + "bgp-rib:application-rib", + "10.25.1.9", + "tables", + "bgp-types:ipv4-address-family", + "bgp-types:unicast-subsequent-address-family", + "bgp-inet:ipv4-routes", + "ipv4-route", + "10.100.1.1%2F24", + "0" + ] + } + }, + "response": [] + }, + { + "_postman_id": "6b55fa63-1545-4de9-b29c-eb90368135db", + "name": "Show BGP configuration on vpp2", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" + }, + "url": { + "raw": "https://172.17.0.3:8445/restconf/config/openconfig-network-instance:network-instances/", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "3" + ], + "port": "8445", + "path": [ + "restconf", + "config", + "openconfig-network-instance:network-instances", + "" + ] + } + }, + "response": [] + }, + { + "_postman_id": "629a8fd9-ee5d-401d-8324-7db924e9d814", + "name": "Show HC BGP state on vpp2", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 192.0.2.1\n \n \n 90\n 10\n \n \n \n \n 179\n false\n \n \n \n INTERNAL\n \n" + }, + "url": { + "raw": "https://172.17.0.3:8445/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance", + "protocol": "https", + "host": [ + "172", + "17", + "0", + "3" + ], + "port": "8445", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance" + ] + } + }, + "response": [] + } + ] } ] } \ No newline at end of file -- cgit 1.2.3-korg