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 --- .../bgp_prefix_sid_postman_collection.json | 482 +++++++--- .../bgp_prefix_sid_postman_collection_v1.0.0.json | 179 ++++ bgp/inet/bgp_inet_postman_collection.json | 1016 +++++++++++--------- bgp/inet/bgp_inet_postman_collection_v1.0.0.json | 485 ++++++++++ 4 files changed, 1570 insertions(+), 592 deletions(-) create mode 100644 bgp/bgp-prefix-sid/bgp_prefix_sid_postman_collection_v1.0.0.json create mode 100644 bgp/inet/bgp_inet_postman_collection_v1.0.0.json (limited to 'bgp') diff --git a/bgp/bgp-prefix-sid/bgp_prefix_sid_postman_collection.json b/bgp/bgp-prefix-sid/bgp_prefix_sid_postman_collection.json index ca8ce27db..da8570d15 100644 --- a/bgp/bgp-prefix-sid/bgp_prefix_sid_postman_collection.json +++ b/bgp/bgp-prefix-sid/bgp_prefix_sid_postman_collection.json @@ -1,179 +1,341 @@ { - "id": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "name": "Hc2vpp2 BGP Prefix SID calls", - "description": "Examples of requests for testing advertising and receiving BGP Prefix SID.\nMore info:\nhttps://tools.ietf.org/html/draft-ietf-idr-bgp-prefix-sid-07#section-4.1\n\nhttps://tools.ietf.org/html/draft-ietf-spring-segment-routing-msdc-08#section-4.2.2", - "order": [ - "bfdcbe7f-8a52-5179-ec31-47ea425ffa0b", - "916baf2f-e773-09e8-d034-e7728f0a2743", - "8601e61a-5ca0-6c0d-56a0-bc1d332b149b", - "098d6df6-6bce-7b38-ef83-4b753c571864", - "fb1a07bc-83d8-509d-69b1-4cbdb67ea2de", - "65c1937e-7ea1-e1cd-ca8e-b2f312ad1ac4", - "13805e7c-1ad8-0b3b-c73f-c22f798518ae", - "5966c346-0f2e-a113-a395-b52297a168ea" - ], - "folders": [], - "timestamp": 1513592291556, - "owner": 0, - "public": false, - "requests": [ + "info": { + "_postman_id": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "name": "Hc2vpp2 BGP Prefix SID calls", + "description": "Examples of requests for testing advertising and receiving BGP Prefix SID.\nMore info:\nhttps://tools.ietf.org/html/draft-ietf-idr-bgp-prefix-sid-07#section-4.1\n\nhttps://tools.ietf.org/html/draft-ietf-spring-segment-routing-msdc-08#section-4.2.2", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ { - "id": "098d6df6-6bce-7b38-ef83-4b753c571864", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/config/hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls/hc2vpp-ietf-mpls-static:static-lsps/static-lsp/192.0.2.11", - "preRequestScript": "", - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1513954038151, - "name": "Push single MPLS label", - "description": "HC translates BGP LU updates to recursive routes with outgoing label.\nTo teach VPP how to resolve them we need non-recursive one.\n\nVPP can't recursively resolve a route that has out labels via a route that does not have out labels,\nso we cnfigure implicit null(3) (no more labels will be added to the package).\n\nCLI equivalent:\nip route add 192.0.2.11/32 via loop0 out-labels 3", - "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "responses": [], - "rawModeData": "{\n \"static-lsp\": [\n {\n \"name\": \"192.0.2.11\",\n \"config\": {\n \"in-segment\": {\n \"ip-prefix\": \"192.0.2.11/32\"\n },\n \"operation\": \"impose-and-forward\",\n \"outgoing-label\": 3,\n \"outgoing-interface\": \"loop0\"\n }\n }\n ]\n}" + "_postman_id": "796ded75-d3fa-483e-bb17-2a8c6f623178", + "name": "Add loop0 interface ", + "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 \"description\": \"for testing purposes\",\n \"type\": \"v3po:loopback\",\n \"loopback\": {\n \"mac\": \"00:ff:ff:ff:ff:ff\"\n }\n }\n ]\n}" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/loop0", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "ietf-interfaces:interfaces", + "interface", + "loop0" + ] + }, + "description": "We need an interface for our MPLS traffic. Our example uses loopback for simplicity." + }, + "response": [] }, { - "id": "13805e7c-1ad8-0b3b-c73f-c22f798518ae", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", - "preRequestScript": null, - "pathVariables": {}, - "method": "DELETE", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1513954995928, - "name": "Delete IPv4 labeled unicast route (cfg)", - "description": "", - "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "responses": [], - "rawModeData": "" + "_postman_id": "9b2bdadc-4de7-4897-ab19-d36194105f2c", + "name": "Enable mpls on loop0 interface", + "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 \"config\": {\n \"enabled\": \"true\"\n }\n }\n ]\n}" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls/interface/loop0", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "hc2vpp-ietf-routing:routing", + "hc2vpp-ietf-mpls:mpls", + "interface", + "loop0" + ] + } + }, + "response": [] }, { - "id": "5966c346-0f2e-a113-a395-b52297a168ea", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/loc-rib", - "preRequestScript": null, - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1517405616873, - "name": "Show Loc-RIB", - "description": "To check if route was programmed.", - "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "responses": [], - "rawModeData": "\n 10.25.1.9\n \n application-peers\n \n" + "_postman_id": "1e97f3cb-062b-4fa8-a140-f76a18ab2931", + "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\": \"192.0.2.11\",\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": "http://localhost:8183/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/192.0.2.11", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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", + "192.0.2.11" + ] + }, + "description": "BGP HC borrows application peer concept for route programming.\n\nLet's configure an instance that supports BGP LU." + }, + "response": [] }, { - "id": "65c1937e-7ea1-e1cd-ca8e-b2f312ad1ac4", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", - "preRequestScript": null, - "pathVariables": {}, - "method": "GET", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1513953133232, - "name": "Show IPv4 labeled unicast route (cfg)", - "description": "", - "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "responses": [], - "rawModeData": "" + "_postman_id": "3ce48f21-d660-4300-9f66-968e4ddebfc1", + "name": "Push single MPLS label", + "request": { + "method": "PUT", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"static-lsp\": [\n {\n \"name\": \"192.0.2.11\",\n \"config\": {\n \"in-segment\": {\n \"ip-prefix\": \"192.0.2.11/32\"\n },\n \"operation\": \"impose-and-forward\",\n \"outgoing-label\": 3,\n \"outgoing-interface\": \"loop0\"\n }\n }\n ]\n}" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls/hc2vpp-ietf-mpls-static:static-lsps/static-lsp/192.0.2.11", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "hc2vpp-ietf-routing:routing", + "hc2vpp-ietf-mpls:mpls", + "hc2vpp-ietf-mpls-static:static-lsps", + "static-lsp", + "192.0.2.11" + ] + }, + "description": "HC translates BGP LU updates to recursive routes with outgoing label.\nTo teach VPP how to resolve them we need non-recursive one.\n\nVPP can't recursively resolve a route that has out labels via a route that does not have out labels,\nso we cnfigure implicit null(3) (no more labels will be added to the package).\n\nCLI equivalent:\nip route add 192.0.2.11/32 via loop0 out-labels 3" + }, + "response": [] }, { - "id": "8601e61a-5ca0-6c0d-56a0-bc1d332b149b", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "http://localhost:8183/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/192.0.2.11", - "preRequestScript": null, - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1513954016557, - "name": "Add application peer", - "description": "BGP HC borrows application peer concept for route programming.\n\nLet's configure an instance that supports BGP LU.", - "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "responses": [], - "rawModeData": "{\n \"neighbor\": {\n \"neighbor-address\": \"192.0.2.11\",\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}" + "_postman_id": "1fc508a1-53d9-4af0-a7ea-edeb4ebf36cc", + "name": "Add IPv4 labeled unicast route", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"bgp-labeled-unicast:labeled-unicast-route\": [\n {\n \"path-id\": 1,\n \"route-key\": \"bgp-lu-route\",\n \"attributes\": {\n \"local-pref\": {\n \"pref\": 100\n },\n \"bgp-prefix-sid\": {\n \"bgp-prefix-sid-tlvs\": [\n {\n \"label-index-tlv\": 11\n },\n {\n \"srgb-value\": [\n {\n \"range\": 8000,\n \"base\": 16000\n }\n ]\n }\n ]\n },\n \"ipv4-next-hop\": {\n \"global\": \"192.0.2.11\"\n },\n \"as-path\": {},\n \"origin\": {\n \"value\": \"igp\"\n }\n },\n \"label-stack\": [\n {\n \"label-value\": 16011\n }\n ],\n \"prefix\": \"10.10.10.10/24\"\n }\n ]\n}" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "bgp-rib:application-rib", + "192.0.2.11", + "tables", + "bgp-types:ipv4-address-family", + "bgp-labeled-unicast:labeled-unicast-subsequent-address-family", + "bgp-labeled-unicast:labeled-unicast-routes", + "labeled-unicast-route", + "bgp-lu-route", + "1" + ] + }, + "description": "Configures BGP LU update for 10.10.10.10/24 via 192.0.2.11 with label 16011 and label-index 11.\n\nVerify presence of 3 FIB entries (MPLS non-eos, eos, IP) using CLI:\n\nvpp# show mpls fib 16011\n\nvpp# show ip fib 10.10.10.10" + }, + "response": [] }, { - "id": "916baf2f-e773-09e8-d034-e7728f0a2743", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/config/hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls/interface/loop0", - "preRequestScript": "", - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1513953993897, - "name": "Enable mpls on loop0 interface", - "description": "", - "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "responses": [], - "rawModeData": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"config\": {\n \"enabled\": \"true\"\n }\n }\n ]\n}" + "_postman_id": "64fae898-b1c7-47c8-9015-c4de01d2dd5d", + "name": "Show IPv4 labeled unicast route (cfg)", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "bgp-rib:application-rib", + "192.0.2.11", + "tables", + "bgp-types:ipv4-address-family", + "bgp-labeled-unicast:labeled-unicast-subsequent-address-family", + "bgp-labeled-unicast:labeled-unicast-routes", + "labeled-unicast-route", + "bgp-lu-route", + "1" + ] + } + }, + "response": [] }, { - "id": "bfdcbe7f-8a52-5179-ec31-47ea425ffa0b", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/loop0", - "preRequestScript": "", - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "version": 2, - "tests": "", - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1513953979381, - "name": "Add loop0 interface ", - "description": "We need an interface for our MPLS traffic. Our example uses loopback for simplicity.", - "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "responses": [], - "rawModeData": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"description\": \"for testing purposes\",\n \"type\": \"v3po:loopback\",\n \"loopback\": {\n \"mac\": \"00:ff:ff:ff:ff:ff\"\n }\n }\n ]\n}" + "_postman_id": "1c09c372-ddfb-40b4-87ba-53f11b8fe0f8", + "name": "Delete IPv4 labeled unicast route (cfg)", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "bgp-rib:application-rib", + "192.0.2.11", + "tables", + "bgp-types:ipv4-address-family", + "bgp-labeled-unicast:labeled-unicast-subsequent-address-family", + "bgp-labeled-unicast:labeled-unicast-routes", + "labeled-unicast-route", + "bgp-lu-route", + "1" + ] + } + }, + "response": [] }, { - "id": "fb1a07bc-83d8-509d-69b1-4cbdb67ea2de", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", - "preRequestScript": null, - "pathVariables": {}, - "method": "PUT", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1513954149219, - "name": "Add IPv4 labeled unicast route", - "description": "Configures BGP LU update for 10.10.10.10/24 via 192.0.2.11 with label 16011 and label-index 11.\n\nVerify presence of 3 FIB entries (MPLS non-eos, eos, IP) using CLI:\n\nvpp# show mpls fib 16011\n\nvpp# show ip fib 10.10.10.10", - "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", - "rawModeData": "{\n \"bgp-labeled-unicast:labeled-unicast-route\": [\n {\n \"path-id\": 1,\n \"route-key\": \"bgp-lu-route\",\n \"attributes\": {\n \"local-pref\": {\n \"pref\": 100\n },\n \"bgp-prefix-sid\": {\n \"bgp-prefix-sid-tlvs\": [\n {\n \"label-index-tlv\": 11\n },\n {\n \"srgb-value\": [\n {\n \"range\": 8000,\n \"base\": 16000\n }\n ]\n }\n ]\n },\n \"ipv4-next-hop\": {\n \"global\": \"192.0.2.11\"\n },\n \"as-path\": {},\n \"origin\": {\n \"value\": \"igp\"\n }\n },\n \"label-stack\": [\n {\n \"label-value\": 16011\n }\n ],\n \"prefix\": \"10.10.10.10/24\"\n }\n ]\n}" + "_postman_id": "16261cc9-8b65-4b55-a615-2d6ecdce4af1", + "name": "Show Loc-RIB", + "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": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/loc-rib", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance", + "loc-rib" + ] + }, + "description": "To check if route was programmed." + }, + "response": [] } ] } \ No newline at end of file diff --git a/bgp/bgp-prefix-sid/bgp_prefix_sid_postman_collection_v1.0.0.json b/bgp/bgp-prefix-sid/bgp_prefix_sid_postman_collection_v1.0.0.json new file mode 100644 index 000000000..ca8ce27db --- /dev/null +++ b/bgp/bgp-prefix-sid/bgp_prefix_sid_postman_collection_v1.0.0.json @@ -0,0 +1,179 @@ +{ + "id": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "name": "Hc2vpp2 BGP Prefix SID calls", + "description": "Examples of requests for testing advertising and receiving BGP Prefix SID.\nMore info:\nhttps://tools.ietf.org/html/draft-ietf-idr-bgp-prefix-sid-07#section-4.1\n\nhttps://tools.ietf.org/html/draft-ietf-spring-segment-routing-msdc-08#section-4.2.2", + "order": [ + "bfdcbe7f-8a52-5179-ec31-47ea425ffa0b", + "916baf2f-e773-09e8-d034-e7728f0a2743", + "8601e61a-5ca0-6c0d-56a0-bc1d332b149b", + "098d6df6-6bce-7b38-ef83-4b753c571864", + "fb1a07bc-83d8-509d-69b1-4cbdb67ea2de", + "65c1937e-7ea1-e1cd-ca8e-b2f312ad1ac4", + "13805e7c-1ad8-0b3b-c73f-c22f798518ae", + "5966c346-0f2e-a113-a395-b52297a168ea" + ], + "folders": [], + "timestamp": 1513592291556, + "owner": 0, + "public": false, + "requests": [ + { + "id": "098d6df6-6bce-7b38-ef83-4b753c571864", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls/hc2vpp-ietf-mpls-static:static-lsps/static-lsp/192.0.2.11", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1513954038151, + "name": "Push single MPLS label", + "description": "HC translates BGP LU updates to recursive routes with outgoing label.\nTo teach VPP how to resolve them we need non-recursive one.\n\nVPP can't recursively resolve a route that has out labels via a route that does not have out labels,\nso we cnfigure implicit null(3) (no more labels will be added to the package).\n\nCLI equivalent:\nip route add 192.0.2.11/32 via loop0 out-labels 3", + "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "responses": [], + "rawModeData": "{\n \"static-lsp\": [\n {\n \"name\": \"192.0.2.11\",\n \"config\": {\n \"in-segment\": {\n \"ip-prefix\": \"192.0.2.11/32\"\n },\n \"operation\": \"impose-and-forward\",\n \"outgoing-label\": 3,\n \"outgoing-interface\": \"loop0\"\n }\n }\n ]\n}" + }, + { + "id": "13805e7c-1ad8-0b3b-c73f-c22f798518ae", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "url": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", + "preRequestScript": null, + "pathVariables": {}, + "method": "DELETE", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1513954995928, + "name": "Delete IPv4 labeled unicast route (cfg)", + "description": "", + "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "responses": [], + "rawModeData": "" + }, + { + "id": "5966c346-0f2e-a113-a395-b52297a168ea", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/loc-rib", + "preRequestScript": null, + "pathVariables": {}, + "method": "GET", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1517405616873, + "name": "Show Loc-RIB", + "description": "To check if route was programmed.", + "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "responses": [], + "rawModeData": "\n 10.25.1.9\n \n application-peers\n \n" + }, + { + "id": "65c1937e-7ea1-e1cd-ca8e-b2f312ad1ac4", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "url": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", + "preRequestScript": null, + "pathVariables": {}, + "method": "GET", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1513953133232, + "name": "Show IPv4 labeled unicast route (cfg)", + "description": "", + "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "responses": [], + "rawModeData": "" + }, + { + "id": "8601e61a-5ca0-6c0d-56a0-bc1d332b149b", + "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "url": "http://localhost:8183/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/192.0.2.11", + "preRequestScript": null, + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1513954016557, + "name": "Add application peer", + "description": "BGP HC borrows application peer concept for route programming.\n\nLet's configure an instance that supports BGP LU.", + "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "responses": [], + "rawModeData": "{\n \"neighbor\": {\n \"neighbor-address\": \"192.0.2.11\",\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": "916baf2f-e773-09e8-d034-e7728f0a2743", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls/interface/loop0", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1513953993897, + "name": "Enable mpls on loop0 interface", + "description": "", + "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "responses": [], + "rawModeData": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"config\": {\n \"enabled\": \"true\"\n }\n }\n ]\n}" + }, + { + "id": "bfdcbe7f-8a52-5179-ec31-47ea425ffa0b", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/interface/loop0", + "preRequestScript": "", + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "version": 2, + "tests": "", + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1513953979381, + "name": "Add loop0 interface ", + "description": "We need an interface for our MPLS traffic. Our example uses loopback for simplicity.", + "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "responses": [], + "rawModeData": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"description\": \"for testing purposes\",\n \"type\": \"v3po:loopback\",\n \"loopback\": {\n \"mac\": \"00:ff:ff:ff:ff:ff\"\n }\n }\n ]\n}" + }, + { + "id": "fb1a07bc-83d8-509d-69b1-4cbdb67ea2de", + "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "url": "http://localhost:8183/restconf/config/bgp-rib:application-rib/192.0.2.11/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes/labeled-unicast-route/bgp-lu-route/1", + "preRequestScript": null, + "pathVariables": {}, + "method": "PUT", + "data": [], + "dataMode": "raw", + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1513954149219, + "name": "Add IPv4 labeled unicast route", + "description": "Configures BGP LU update for 10.10.10.10/24 via 192.0.2.11 with label 16011 and label-index 11.\n\nVerify presence of 3 FIB entries (MPLS non-eos, eos, IP) using CLI:\n\nvpp# show mpls fib 16011\n\nvpp# show ip fib 10.10.10.10", + "collectionId": "3e4d9bae-66c9-2fff-bbf0-084a2dc5f825", + "rawModeData": "{\n \"bgp-labeled-unicast:labeled-unicast-route\": [\n {\n \"path-id\": 1,\n \"route-key\": \"bgp-lu-route\",\n \"attributes\": {\n \"local-pref\": {\n \"pref\": 100\n },\n \"bgp-prefix-sid\": {\n \"bgp-prefix-sid-tlvs\": [\n {\n \"label-index-tlv\": 11\n },\n {\n \"srgb-value\": [\n {\n \"range\": 8000,\n \"base\": 16000\n }\n ]\n }\n ]\n },\n \"ipv4-next-hop\": {\n \"global\": \"192.0.2.11\"\n },\n \"as-path\": {},\n \"origin\": {\n \"value\": \"igp\"\n }\n },\n \"label-stack\": [\n {\n \"label-value\": 16011\n }\n ],\n \"prefix\": \"10.10.10.10/24\"\n }\n ]\n}" + } + ] +} \ No newline at end of file diff --git a/bgp/inet/bgp_inet_postman_collection.json b/bgp/inet/bgp_inet_postman_collection.json index 303e56636..a0d845840 100644 --- a/bgp/inet/bgp_inet_postman_collection.json +++ b/bgp/inet/bgp_inet_postman_collection.json @@ -1,485 +1,637 @@ { - "id": "4092bf75-52e9-d793-36ab-c78696e33253", - "name": "Hc2vpp BGP RESTCONF calls", - "description": "Examples of BGP configration based on \nhttp://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html", - "order": [ - "6f86a479-0973-2d0c-20d5-81e8d44d20a7", - "adcc08ea-3525-aafb-2aeb-4f5bb93fca1b", - "63945ffe-709c-5368-9a0d-bd7ea5617973", - "307b9972-af2b-ff8a-8fae-be83b075c6e6", - "3941a6b9-784a-8f80-a12f-d7451f832465", - "820727b2-88ea-6b49-c31d-f6dd4d5f64d8", - "e3d003ba-9796-adcd-75e3-f0d5fc041744", - "9a8903dd-3fca-26c7-2c66-dc1a4b95cfce", - "32d6df51-2adb-a472-42dd-88aee1c66845", - "96f9f5ef-d97c-a3c1-3061-55d75d223077", - "e794b5b4-612f-010b-e726-c45cfa221530", - "4334b011-5945-180b-dd1a-932720b2ff58", - "e2701dbf-741b-9afa-219b-a15b562d6aff", - "e5aeee97-5530-5bb4-90f2-f1f48b6fee5b", - "60af084c-5bbf-2843-39e9-8bdb80586b91" - ], - "folders": [], - "timestamp": 1494477000331, - "owner": 0, - "public": false, - "requests": [ + "info": { + "_postman_id": "4092bf75-52e9-d793-36ab-c78696e33253", + "name": "Hc2vpp BGP RESTCONF calls", + "description": "Examples of BGP configration based on \nhttp://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ { - "folder": null, - "id": "307b9972-af2b-ff8a-8fae-be83b075c6e6", - "name": "show 127.0.0.2 peer state", - "dataMode": "raw", - "data": [], - "descriptionFormat": null, - "description": "", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "method": "GET", - "pathVariables": {}, - "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F127.0.0.2", - "preRequestScript": null, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "queryParams": null, - "headerData": null, - "pathVariableData": null, - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "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" + "_postman_id": "f3e0f4e3-1faa-43e8-aeb2-3ac1525de40b", + "name": "show hc-bgp-instance", + "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": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance" + ] + } + }, + "response": [] }, { - "folder": null, - "id": "32d6df51-2adb-a472-42dd-88aee1c66845", - "name": "show speeker's Loc-RIB", - "dataMode": "raw", - "data": [], - "descriptionFormat": null, - "description": "", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "method": "GET", - "pathVariables": {}, - "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/loc-rib", - "preRequestScript": null, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "queryParams": null, - "headerData": null, - "pathVariableData": null, - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "rawModeData": "\n 10.25.1.9\n \n application-peers\n \n" + "_postman_id": "7407ceb8-f112-4ac0-b40a-c07da58ff698", + "name": "add bgp peer", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"neighbor\": {\n \"neighbor-address\": \"127.0.0.2\",\n \"config\": {\n \"peer-type\": \"INTERNAL\"\n },\n \"timers\": {\n \"config\": {\n \"connect-retry\": 10,\n \"hold-time\": 90\n }\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 17900,\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 }\n}\n}" + }, + "url": { + "raw": "http://localhost:8183/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/127.0.0.2", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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", + "127.0.0.2" + ] + } + }, + "response": [] }, { - "id": "3941a6b9-784a-8f80-a12f-d7451f832465", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "url": "http://localhost:8183/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", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1517409419557, - "name": "add application peer", - "description": "", - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "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 }\n }\n}" + "_postman_id": "99c2a219-4942-43d8-af21-437f9d8ae0c2", + "name": "read network instance (config)", + "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": "http://localhost:8183/restconf/config/openconfig-network-instance:network-instances/", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "config", + "openconfig-network-instance:network-instances", + "" + ] + } + }, + "response": [] }, { - "folder": null, - "id": "4334b011-5945-180b-dd1a-932720b2ff58", - "name": "update second ipv4unicast route", - "dataMode": "raw", - "data": [], - "descriptionFormat": null, - "description": "", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "method": "PUT", - "pathVariables": {}, - "url": "http://localhost:8183/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.0.0.12%2F32/0", - "preRequestScript": null, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "queryParams": [], - "headerData": [ - { - "key": "Content-Type", - "value": "application/xml", - "description": "", - "enabled": true + "_postman_id": "10da8355-7d52-45f6-8b8e-fb5020f52b88", + "name": "show 127.0.0.2 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" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F127.0.0.2", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance", + "peer", + "bgp:%2F%2F127.0.0.2" + ] } - ], - "pathVariableData": [], - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "rawModeData": "\n 0\n 10.0.0.12/32\n \n \n \n igp\n \n \n 102\n \n \n 10.11.1.1\n \n \n" + }, + "response": [] }, { - "id": "60af084c-5bbf-2843-39e9-8bdb80586b91", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "headerData": [ - { - "key": "Content-Type", - "value": "application/json", - "description": "", - "enabled": true + "_postman_id": "20661906-559e-46c5-8fa0-afa5b010b004", + "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 }\n }\n}" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/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": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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" + ] } - ], - "url": "http://localhost:8183/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/127.0.0.2", - "queryParams": [], - "preRequestScript": null, - "pathVariables": {}, - "pathVariableData": [], - "method": "DELETE", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1500014574942, - "name": "delete bgp peer", - "description": "", - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "responses": [], - "rawModeData": "" + }, + "response": [] }, { - "id": "63945ffe-709c-5368-9a0d-bd7ea5617973", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "headerData": [ - { - "key": "Content-Type", - "value": "application/xml", - "description": "", - "enabled": true + "_postman_id": "b33d307d-ff95-4ed5-ab59-22ed0e88e6aa", + "name": "show 10.25.1.9 app 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" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F10.25.1.9", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance", + "peer", + "bgp:%2F%2F10.25.1.9" + ] } - ], - "url": "http://localhost:8183/restconf/config/openconfig-network-instance:network-instances/", - "queryParams": [], - "preRequestScript": null, - "pathVariables": {}, - "pathVariableData": [], - "method": "GET", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1499946714543, - "name": "read network instance (config)", - "description": "", - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "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" + }, + "response": [] }, { - "folder": null, - "id": "6f86a479-0973-2d0c-20d5-81e8d44d20a7", - "name": "show hc-bgp-instance", - "dataMode": "raw", - "data": [], - "descriptionFormat": null, - "description": "", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "method": "GET", - "pathVariables": {}, - "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance", - "preRequestScript": null, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "queryParams": null, - "headerData": null, - "pathVariableData": null, - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "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" + "_postman_id": "2c3d280e-a98a-4b98-9204-a775124107bf", + "name": "add ipv4unicast route", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 0\n 10.0.0.11/32\n \n \n \n igp\n \n \n 100\n \n \n 10.11.1.1\n \n \n" + }, + "url": { + "raw": "http://localhost:8183/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.0.0.11%2F32/0", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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.0.0.11%2F32", + "0" + ] + } + }, + "response": [] }, { - "id": "820727b2-88ea-6b49-c31d-f6dd4d5f64d8", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "headerData": [ - { - "key": "Content-Type", - "value": "application/xml", - "description": "", - "enabled": true + "_postman_id": "436ccd51-3548-4d3e-967e-74ffb9a5e601", + "name": "show 127.0.0.2 peer's adj-rib-out", + "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" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F127.0.0.2/adj-rib-out/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance", + "peer", + "bgp:%2F%2F127.0.0.2", + "adj-rib-out", + "tables", + "bgp-types:ipv4-address-family", + "bgp-types:unicast-subsequent-address-family", + "bgp-inet:ipv4-routes" + ] } - ], - "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F10.25.1.9", - "queryParams": [], - "preRequestScript": null, - "pathVariables": {}, - "pathVariableData": [], - "method": "GET", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1500015544451, - "name": "show 10.25.1.9 app peer state", - "description": "", - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "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" + }, + "response": [] }, { - "folder": null, - "id": "96f9f5ef-d97c-a3c1-3061-55d75d223077", - "name": "add another ipv4unicast route", - "dataMode": "raw", - "data": [], - "descriptionFormat": null, - "description": "", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "method": "PUT", - "pathVariables": {}, - "url": "http://localhost:8183/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.0.0.12%2F32/0", - "preRequestScript": null, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "queryParams": [], - "headerData": [ - { - "key": "Content-Type", - "value": "application/xml", - "description": "", - "enabled": true + "_postman_id": "bf72955c-8d25-41c0-a34c-25bf909a65e7", + "name": "show speeker's Loc-RIB", + "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" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/loc-rib", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "bgp-rib:bgp-rib", + "rib", + "hc-bgp-instance", + "loc-rib" + ] } - ], - "pathVariableData": [], - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "rawModeData": "\n 0\n 10.0.0.12/32\n \n \n \n igp\n \n \n 100\n \n \n 10.11.1.1\n \n \n" + }, + "response": [] }, { - "folder": null, - "id": "9a8903dd-3fca-26c7-2c66-dc1a4b95cfce", - "name": "show 127.0.0.2 peer's adj-rib-out", - "dataMode": "raw", - "data": [], - "descriptionFormat": null, - "description": "", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "method": "GET", - "pathVariables": {}, - "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F127.0.0.2/adj-rib-out/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes", - "preRequestScript": null, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "queryParams": null, - "headerData": null, - "pathVariableData": null, - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "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" + "_postman_id": "2d83d868-e8f6-40dc-aa6e-401a7fa61a36", + "name": "add another ipv4unicast route", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 0\n 10.0.0.12/32\n \n \n \n igp\n \n \n 100\n \n \n 10.11.1.1\n \n \n" + }, + "url": { + "raw": "http://localhost:8183/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.0.0.12%2F32/0", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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.0.0.12%2F32", + "0" + ] + } + }, + "response": [] }, { - "id": "adcc08ea-3525-aafb-2aeb-4f5bb93fca1b", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "headerData": [ - { - "key": "Content-Type", - "value": "application/json", - "description": "", - "enabled": true + "_postman_id": "9a436548-aa9e-4389-a4a9-1b5cfb89aaa3", + "name": "get VPP IPv4 routes", + "request": { + "method": "GET", + "header": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + }, + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"routing-instance\":\n {\n \"name\":\"routing-1\",\n \"enabled\":\"true\",\n \"router-id\":\"192.168.2.1\",\n \"description\":\"Test routing instance\",\n \"routing-protocols\":{\n \"routing-protocol\":[\n {\n \"name\":\"test-routing-protocol\",\n \"description\":\"Test routing protocol\",\n \"enabled\":\"true\",\n \"type\":\"static\",\n \"static-routes\":{\n \"ipv4\":{\n \"route\":[\n {\n \"id\":1,\n \"description\":\"Test static route\",\n \"destination-prefix\":\"192.168.2.3/32\",\n \"next-hop\":\"192.168.2.8\"\n }\n ]\n }\n }\n } \n ]\n }\n } \n}" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/restconf/operational/hc2vpp-ietf-routing:routing-state/routing-instance/vpp-routing-instance/routing-protocols/routing-protocol/learned-protocol-0/static-routes/hc2vpp-ietf-ipv4-unicast-routing:ipv4", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "path": [ + "restconf", + "operational", + "hc2vpp-ietf-routing:routing-state", + "routing-instance", + "vpp-routing-instance", + "routing-protocols", + "routing-protocol", + "learned-protocol-0", + "static-routes", + "hc2vpp-ietf-ipv4-unicast-routing:ipv4" + ] } - ], - "url": "http://localhost:8183/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/127.0.0.2", - "queryParams": [], - "preRequestScript": null, - "pathVariables": {}, - "pathVariableData": [], - "method": "PUT", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1500013934256, - "name": "add bgp peer", - "description": "", - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "responses": [], - "rawModeData": "{\n\t\"neighbor\": {\n \"neighbor-address\": \"127.0.0.2\",\n \"config\": {\n \"peer-type\": \"INTERNAL\"\n },\n \"timers\": {\n \"config\": {\n \"connect-retry\": 10,\n \"hold-time\": 90\n }\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 17900,\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 }\n}\n}" + }, + "response": [] }, { - "folder": null, - "id": "e2701dbf-741b-9afa-219b-a15b562d6aff", - "name": "remove second ipv4unicast route", - "dataMode": "raw", - "data": [], - "rawModeData": "", - "descriptionFormat": null, - "description": "", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "method": "DELETE", - "pathVariables": {}, - "url": "http://localhost:8183/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.0.0.12%2F32/0", - "preRequestScript": null, - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "queryParams": [], - "headerData": [ - { - "key": "Content-Type", - "value": "application/xml", - "description": "", - "enabled": true + "_postman_id": "bb9ae871-9ca1-4456-be14-2d9a1d2ef152", + "name": "update second ipv4unicast route", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "\n 0\n 10.0.0.12/32\n \n \n \n igp\n \n \n 102\n \n \n 10.11.1.1\n \n \n" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/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.0.0.12%2F32/0", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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.0.0.12%2F32", + "0" + ] } - ], - "pathVariableData": [], - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253" + }, + "response": [] }, { - "id": "e3d003ba-9796-adcd-75e3-f0d5fc041744", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "headerData": [ - { - "key": "Content-Type", - "value": "application/xml", - "description": "", - "enabled": true + "_postman_id": "7acec3bd-ff58-46ca-b3d4-2d5c91a507cc", + "name": "remove second ipv4unicast route", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/xml" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/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.0.0.12%2F32/0", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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.0.0.12%2F32", + "0" + ] } - ], - "url": "http://localhost:8183/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.0.0.11%2F32/0", - "queryParams": [], - "preRequestScript": null, - "pathVariables": {}, - "pathVariableData": [], - "method": "PUT", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1501153693347, - "name": "add ipv4unicast route", - "description": "", - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "rawModeData": "\n 0\n 10.0.0.11/32\n \n \n \n igp\n \n \n 100\n \n \n 10.11.1.1\n \n \n" + }, + "response": [] }, { - "id": "e5aeee97-5530-5bb4-90f2-f1f48b6fee5b", - "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "headerData": [ - { - "key": "Content-Type", - "value": "application/json", - "description": "", - "enabled": true + "_postman_id": "fa920481-50f0-4754-8260-929bbe1e86ae", + "name": "update bgp peer", + "request": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"neighbor\": {\n \"neighbor-address\": \"127.0.0.2\",\n \"config\": {\n \"peer-type\": \"INTERNAL\"\n },\n \"timers\": {\n \"config\": {\n \"connect-retry\": 10,\n \"hold-time\": 91\n }\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 17900,\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 }\n}\n}" }, - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/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/127.0.0.2", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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", + "127.0.0.2" + ] } - ], - "url": "http://localhost:8183/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/127.0.0.2", - "queryParams": [], - "preRequestScript": null, - "pathVariables": {}, - "pathVariableData": [], - "method": "PUT", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1500014475038, - "name": "update bgp peer", - "description": "", - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "responses": [], - "rawModeData": "{\n\t\"neighbor\": {\n \"neighbor-address\": \"127.0.0.2\",\n \"config\": {\n \"peer-type\": \"INTERNAL\"\n },\n \"timers\": {\n \"config\": {\n \"connect-retry\": 10,\n \"hold-time\": 91\n }\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 17900,\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 }\n}\n}" + }, + "response": [] }, { - "id": "e794b5b4-612f-010b-e726-c45cfa221530", - "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", - "headerData": [ - { - "key": "Authorization", - "value": "Basic YWRtaW46YWRtaW4=", - "description": "", - "enabled": true + "_postman_id": "dfd36e6b-95bc-4b17-84fd-a72672e1e075", + "name": "delete bgp peer", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=" + } + ], + "body": { + "mode": "raw", + "raw": "" }, - { - "key": "Content-Type", - "value": "application/json", - "description": "", - "enabled": true + "url": { + "raw": "http://localhost:8183/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/127.0.0.2", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8183", + "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", + "127.0.0.2" + ] } - ], - "url": "http://localhost:8183/restconf/operational/hc2vpp-ietf-routing:routing-state/routing-instance/vpp-routing-instance/routing-protocols/routing-protocol/learned-protocol-0/static-routes/hc2vpp-ietf-ipv4-unicast-routing:ipv4", - "queryParams": [], - "pathVariables": {}, - "pathVariableData": [], - "preRequestScript": null, - "method": "GET", - "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", - "data": [], - "dataMode": "raw", - "name": "get VPP IPv4 routes", - "description": "", - "descriptionFormat": "html", - "time": 1501156310525, - "version": 2, - "responses": [], - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "rawModeData": "{\n \"routing-instance\":\n {\n \"name\":\"routing-1\",\n \"enabled\":\"true\",\n \"router-id\":\"192.168.2.1\",\n \"description\":\"Test routing instance\",\n \"routing-protocols\":{\n \"routing-protocol\":[\n {\n \"name\":\"test-routing-protocol\",\n \"description\":\"Test routing protocol\",\n \"enabled\":\"true\",\n \"type\":\"static\",\n \"static-routes\":{\n \"ipv4\":{\n \"route\":[\n {\n \"id\":1,\n \"description\":\"Test static route\",\n \"destination-prefix\":\"192.168.2.3/32\",\n \"next-hop\":\"192.168.2.8\"\n }\n ]\n }\n }\n } \n ]\n }\n } \n}" + }, + "response": [] } ] } \ No newline at end of file diff --git a/bgp/inet/bgp_inet_postman_collection_v1.0.0.json b/bgp/inet/bgp_inet_postman_collection_v1.0.0.json new file mode 100644 index 000000000..303e56636 --- /dev/null +++ b/bgp/inet/bgp_inet_postman_collection_v1.0.0.json @@ -0,0 +1,485 @@ +{ + "id": "4092bf75-52e9-d793-36ab-c78696e33253", + "name": "Hc2vpp BGP RESTCONF calls", + "description": "Examples of BGP configration based on \nhttp://docs.opendaylight.org/en/stable-nitrogen/user-guide/bgp-user-guide.html", + "order": [ + "6f86a479-0973-2d0c-20d5-81e8d44d20a7", + "adcc08ea-3525-aafb-2aeb-4f5bb93fca1b", + "63945ffe-709c-5368-9a0d-bd7ea5617973", + "307b9972-af2b-ff8a-8fae-be83b075c6e6", + "3941a6b9-784a-8f80-a12f-d7451f832465", + "820727b2-88ea-6b49-c31d-f6dd4d5f64d8", + "e3d003ba-9796-adcd-75e3-f0d5fc041744", + "9a8903dd-3fca-26c7-2c66-dc1a4b95cfce", + "32d6df51-2adb-a472-42dd-88aee1c66845", + "96f9f5ef-d97c-a3c1-3061-55d75d223077", + "e794b5b4-612f-010b-e726-c45cfa221530", + "4334b011-5945-180b-dd1a-932720b2ff58", + "e2701dbf-741b-9afa-219b-a15b562d6aff", + "e5aeee97-5530-5bb4-90f2-f1f48b6fee5b", + "60af084c-5bbf-2843-39e9-8bdb80586b91" + ], + "folders": [], + "timestamp": 1494477000331, + "owner": 0, + "public": false, + "requests": [ + { + "folder": null, + "id": "307b9972-af2b-ff8a-8fae-be83b075c6e6", + "name": "show 127.0.0.2 peer state", + "dataMode": "raw", + "data": [], + "descriptionFormat": null, + "description": "", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "method": "GET", + "pathVariables": {}, + "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F127.0.0.2", + "preRequestScript": null, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "queryParams": null, + "headerData": null, + "pathVariableData": null, + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "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" + }, + { + "folder": null, + "id": "32d6df51-2adb-a472-42dd-88aee1c66845", + "name": "show speeker's Loc-RIB", + "dataMode": "raw", + "data": [], + "descriptionFormat": null, + "description": "", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "method": "GET", + "pathVariables": {}, + "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/loc-rib", + "preRequestScript": null, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "queryParams": null, + "headerData": null, + "pathVariableData": null, + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "rawModeData": "\n 10.25.1.9\n \n application-peers\n \n" + }, + { + "id": "3941a6b9-784a-8f80-a12f-d7451f832465", + "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "url": "http://localhost:8183/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", + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1517409419557, + "name": "add application peer", + "description": "", + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "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 }\n }\n}" + }, + { + "folder": null, + "id": "4334b011-5945-180b-dd1a-932720b2ff58", + "name": "update second ipv4unicast route", + "dataMode": "raw", + "data": [], + "descriptionFormat": null, + "description": "", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "method": "PUT", + "pathVariables": {}, + "url": "http://localhost:8183/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.0.0.12%2F32/0", + "preRequestScript": null, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "queryParams": [], + "headerData": [ + { + "key": "Content-Type", + "value": "application/xml", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "pathVariableData": [], + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "rawModeData": "\n 0\n 10.0.0.12/32\n \n \n \n igp\n \n \n 102\n \n \n 10.11.1.1\n \n \n" + }, + { + "id": "60af084c-5bbf-2843-39e9-8bdb80586b91", + "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "headerData": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "url": "http://localhost:8183/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/127.0.0.2", + "queryParams": [], + "preRequestScript": null, + "pathVariables": {}, + "pathVariableData": [], + "method": "DELETE", + "data": [], + "dataMode": "raw", + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1500014574942, + "name": "delete bgp peer", + "description": "", + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "responses": [], + "rawModeData": "" + }, + { + "id": "63945ffe-709c-5368-9a0d-bd7ea5617973", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "headerData": [ + { + "key": "Content-Type", + "value": "application/xml", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "url": "http://localhost:8183/restconf/config/openconfig-network-instance:network-instances/", + "queryParams": [], + "preRequestScript": null, + "pathVariables": {}, + "pathVariableData": [], + "method": "GET", + "data": [], + "dataMode": "raw", + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1499946714543, + "name": "read network instance (config)", + "description": "", + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "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" + }, + { + "folder": null, + "id": "6f86a479-0973-2d0c-20d5-81e8d44d20a7", + "name": "show hc-bgp-instance", + "dataMode": "raw", + "data": [], + "descriptionFormat": null, + "description": "", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "method": "GET", + "pathVariables": {}, + "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance", + "preRequestScript": null, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "queryParams": null, + "headerData": null, + "pathVariableData": null, + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "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": "820727b2-88ea-6b49-c31d-f6dd4d5f64d8", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "headerData": [ + { + "key": "Content-Type", + "value": "application/xml", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F10.25.1.9", + "queryParams": [], + "preRequestScript": null, + "pathVariables": {}, + "pathVariableData": [], + "method": "GET", + "data": [], + "dataMode": "raw", + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1500015544451, + "name": "show 10.25.1.9 app peer state", + "description": "", + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "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" + }, + { + "folder": null, + "id": "96f9f5ef-d97c-a3c1-3061-55d75d223077", + "name": "add another ipv4unicast route", + "dataMode": "raw", + "data": [], + "descriptionFormat": null, + "description": "", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "method": "PUT", + "pathVariables": {}, + "url": "http://localhost:8183/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.0.0.12%2F32/0", + "preRequestScript": null, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "queryParams": [], + "headerData": [ + { + "key": "Content-Type", + "value": "application/xml", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "pathVariableData": [], + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "rawModeData": "\n 0\n 10.0.0.12/32\n \n \n \n igp\n \n \n 100\n \n \n 10.11.1.1\n \n \n" + }, + { + "folder": null, + "id": "9a8903dd-3fca-26c7-2c66-dc1a4b95cfce", + "name": "show 127.0.0.2 peer's adj-rib-out", + "dataMode": "raw", + "data": [], + "descriptionFormat": null, + "description": "", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "method": "GET", + "pathVariables": {}, + "url": "http://localhost:8183/restconf/operational/bgp-rib:bgp-rib/rib/hc-bgp-instance/peer/bgp:%2F%2F127.0.0.2/adj-rib-out/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes", + "preRequestScript": null, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "queryParams": null, + "headerData": null, + "pathVariableData": null, + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "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": "adcc08ea-3525-aafb-2aeb-4f5bb93fca1b", + "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "headerData": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "url": "http://localhost:8183/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/127.0.0.2", + "queryParams": [], + "preRequestScript": null, + "pathVariables": {}, + "pathVariableData": [], + "method": "PUT", + "data": [], + "dataMode": "raw", + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1500013934256, + "name": "add bgp peer", + "description": "", + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "responses": [], + "rawModeData": "{\n\t\"neighbor\": {\n \"neighbor-address\": \"127.0.0.2\",\n \"config\": {\n \"peer-type\": \"INTERNAL\"\n },\n \"timers\": {\n \"config\": {\n \"connect-retry\": 10,\n \"hold-time\": 90\n }\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 17900,\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 }\n}\n}" + }, + { + "folder": null, + "id": "e2701dbf-741b-9afa-219b-a15b562d6aff", + "name": "remove second ipv4unicast route", + "dataMode": "raw", + "data": [], + "rawModeData": "", + "descriptionFormat": null, + "description": "", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "method": "DELETE", + "pathVariables": {}, + "url": "http://localhost:8183/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.0.0.12%2F32/0", + "preRequestScript": null, + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "queryParams": [], + "headerData": [ + { + "key": "Content-Type", + "value": "application/xml", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "pathVariableData": [], + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253" + }, + { + "id": "e3d003ba-9796-adcd-75e3-f0d5fc041744", + "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "headerData": [ + { + "key": "Content-Type", + "value": "application/xml", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "url": "http://localhost:8183/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.0.0.11%2F32/0", + "queryParams": [], + "preRequestScript": null, + "pathVariables": {}, + "pathVariableData": [], + "method": "PUT", + "data": [], + "dataMode": "raw", + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1501153693347, + "name": "add ipv4unicast route", + "description": "", + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "rawModeData": "\n 0\n 10.0.0.11/32\n \n \n \n igp\n \n \n 100\n \n \n 10.11.1.1\n \n \n" + }, + { + "id": "e5aeee97-5530-5bb4-90f2-f1f48b6fee5b", + "headers": "Content-Type: application/json\nAuthorization: Basic YWRtaW46YWRtaW4=\n", + "headerData": [ + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "enabled": true + }, + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + } + ], + "url": "http://localhost:8183/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/127.0.0.2", + "queryParams": [], + "preRequestScript": null, + "pathVariables": {}, + "pathVariableData": [], + "method": "PUT", + "data": [], + "dataMode": "raw", + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "time": 1500014475038, + "name": "update bgp peer", + "description": "", + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "responses": [], + "rawModeData": "{\n\t\"neighbor\": {\n \"neighbor-address\": \"127.0.0.2\",\n \"config\": {\n \"peer-type\": \"INTERNAL\"\n },\n \"timers\": {\n \"config\": {\n \"connect-retry\": 10,\n \"hold-time\": 91\n }\n },\n \"transport\": {\n \"config\": {\n \"remote-port\": 17900,\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 }\n}\n}" + }, + { + "id": "e794b5b4-612f-010b-e726-c45cfa221530", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n", + "headerData": [ + { + "key": "Authorization", + "value": "Basic YWRtaW46YWRtaW4=", + "description": "", + "enabled": true + }, + { + "key": "Content-Type", + "value": "application/json", + "description": "", + "enabled": true + } + ], + "url": "http://localhost:8183/restconf/operational/hc2vpp-ietf-routing:routing-state/routing-instance/vpp-routing-instance/routing-protocols/routing-protocol/learned-protocol-0/static-routes/hc2vpp-ietf-ipv4-unicast-routing:ipv4", + "queryParams": [], + "pathVariables": {}, + "pathVariableData": [], + "preRequestScript": null, + "method": "GET", + "collectionId": "4092bf75-52e9-d793-36ab-c78696e33253", + "data": [], + "dataMode": "raw", + "name": "get VPP IPv4 routes", + "description": "", + "descriptionFormat": "html", + "time": 1501156310525, + "version": 2, + "responses": [], + "tests": null, + "currentHelper": "normal", + "helperAttributes": {}, + "rawModeData": "{\n \"routing-instance\":\n {\n \"name\":\"routing-1\",\n \"enabled\":\"true\",\n \"router-id\":\"192.168.2.1\",\n \"description\":\"Test routing instance\",\n \"routing-protocols\":{\n \"routing-protocol\":[\n {\n \"name\":\"test-routing-protocol\",\n \"description\":\"Test routing protocol\",\n \"enabled\":\"true\",\n \"type\":\"static\",\n \"static-routes\":{\n \"ipv4\":{\n \"route\":[\n {\n \"id\":1,\n \"description\":\"Test static route\",\n \"destination-prefix\":\"192.168.2.3/32\",\n \"next-hop\":\"192.168.2.8\"\n }\n ]\n }\n }\n } \n ]\n }\n } \n}" + } + ] +} \ No newline at end of file -- cgit 1.2.3-korg