From e7579ac9c300dd8dc99a88bb5453ff995f7571ed Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Wed, 31 Jan 2018 15:38:48 +0100 Subject: Update BGP INET examples - removes LU examples - moves postman collection to inet dir - updates BGP user guide Change-Id: I5844508bcd1898a9aec9b2d07fb66fb1cdf62098 Signed-off-by: Marek Gradzki (cherry picked from commit 33980cbf88a02a511c13d727eb6dc44d2155f571) --- bgp/bgp_postman_collection.json | 537 --------------------- bgp/inet/bgp_inet_postman_collection.json | 485 +++++++++++++++++++ .../user_guide/bgp_in_honeycomb_user_guide.adoc | 36 +- .../src/main/asciidoc/user_guide/user_guide.adoc | 2 +- 4 files changed, 487 insertions(+), 573 deletions(-) delete mode 100644 bgp/bgp_postman_collection.json create mode 100644 bgp/inet/bgp_inet_postman_collection.json diff --git a/bgp/bgp_postman_collection.json b/bgp/bgp_postman_collection.json deleted file mode 100644 index fe42432ff..000000000 --- a/bgp/bgp_postman_collection.json +++ /dev/null @@ -1,537 +0,0 @@ -{ - "id": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "name": "Hc2vpp BGP RESTCONF calls", - "description": "Examples of BGP configration based on \nhttp://docs.opendaylight.org/en/stable-boron/user-guide/bgp-user-guide.html", - "order": [ - "0779736c-2276-3275-b5c1-eccf8cf2fd22", - "0aae4294-1688-f0c1-3f20-21fc93a6dead", - "7097be0f-e36b-2e43-715b-a3d47c47fd94", - "3762ddc0-d7bc-57c9-e9b8-d536a1809fa8", - "5f1886a1-f957-126b-7093-963bce523c90", - "554e0087-3b7a-ea91-80aa-059400fee2ad", - "d13aea58-fb5f-3d4a-d6f4-25b4a67b3539", - "a62df5d6-53ab-f91c-c90c-efb054ef1aa3", - "02a81cd8-758b-8ba9-58f4-1744afb1ea74", - "b69ed7d0-cd9d-82d5-ae17-3be02a254a5f", - "3c3abdc7-0613-0260-46ec-020f0ff5d9d7", - "b49b3af6-cb64-cd30-8294-cc0bd2a61f76", - "1b683e04-c542-df6b-783e-dc1b16ae8f52", - "a24b4cde-e80a-8571-7c64-efaeb2fc1238", - "0b0f2068-5fbb-4d44-e58e-8c4562cda8ad", - "c30eb27b-8883-ab64-2286-a8bbabd95ba9" - ], - "folders": [], - "timestamp": 1494477000331, - "owner": "567303", - "public": false, - "requests": [ - { - "folder": null, - "id": "02a81cd8-758b-8ba9-58f4-1744afb1ea74", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "rawModeData": "\n 10.25.1.9\n \n application-peers\n \n" - }, - { - "folder": null, - "id": "0779736c-2276-3275-b5c1-eccf8cf2fd22", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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": "0aae4294-1688-f0c1-3f20-21fc93a6dead", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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}" - }, - { - "id": "0b0f2068-5fbb-4d44-e58e-8c4562cda8ad", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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}" - }, - { - "folder": null, - "id": "1b683e04-c542-df6b-783e-dc1b16ae8f52", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d" - }, - { - "folder": null, - "id": "3762ddc0-d7bc-57c9-e9b8-d536a1809fa8", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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": "3c3abdc7-0613-0260-46ec-020f0ff5d9d7", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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}" - }, - { - "id": "554e0087-3b7a-ea91-80aa-059400fee2ad", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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": "5f1886a1-f957-126b-7093-963bce523c90", - "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/10.25.1.9", - "queryParams": [], - "preRequestScript": null, - "pathVariables": {}, - "pathVariableData": [], - "method": "PUT", - "data": [], - "dataMode": "raw", - "tests": null, - "currentHelper": "normal", - "helperAttributes": {}, - "time": 1500014801163, - "name": "add application peer", - "description": "", - "collectionId": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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": "7097be0f-e36b-2e43-715b-a3d47c47fd94", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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": "a24b4cde-e80a-8571-7c64-efaeb2fc1238", - "name": "add IPv4 labeled unicast route", - "dataMode": "raw", - "data": [], - "descriptionFormat": null, - "description": "", - "headers": "Content-Type: application/xml\nAuthorization: Basic YWRtaW46YWRtaW4=\n", - "method": "POST", - "pathVariables": {}, - "url": "http://localhost:8183/restconf/config/bgp-rib:application-rib/10.25.1.9/tables/bgp-types:ipv4-address-family/bgp-labeled-unicast:labeled-unicast-subsequent-address-family/bgp-labeled-unicast:labeled-unicast-routes", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "rawModeData": "\n label1\n 1.1.1.1/32\n 1\n \n 800322\n \n \n \n 199.20.160.41\n \n \n igp\n \n \n \n 100\n \n \n" - }, - { - "folder": null, - "id": "a62df5d6-53ab-f91c-c90c-efb054ef1aa3", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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": "b49b3af6-cb64-cd30-8294-cc0bd2a61f76", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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" - }, - { - "folder": null, - "id": "b69ed7d0-cd9d-82d5-ae17-3be02a254a5f", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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" - }, - { - "id": "c30eb27b-8883-ab64-2286-a8bbabd95ba9", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "responses": [], - "rawModeData": "" - }, - { - "id": "d13aea58-fb5f-3d4a-d6f4-25b4a67b3539", - "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": "93836ad6-9489-6642-2539-b0a0aefd8f4d", - "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" - } - ] -} \ No newline at end of file diff --git a/bgp/inet/bgp_inet_postman_collection.json b/bgp/inet/bgp_inet_postman_collection.json new file mode 100644 index 000000000..303e56636 --- /dev/null +++ b/bgp/inet/bgp_inet_postman_collection.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 diff --git a/release-notes/src/main/asciidoc/user_guide/bgp_in_honeycomb_user_guide.adoc b/release-notes/src/main/asciidoc/user_guide/bgp_in_honeycomb_user_guide.adoc index 4b5931caa..b89a03184 100644 --- a/release-notes/src/main/asciidoc/user_guide/bgp_in_honeycomb_user_guide.adoc +++ b/release-notes/src/main/asciidoc/user_guide/bgp_in_honeycomb_user_guide.adoc @@ -77,14 +77,6 @@ BGP server configuration can be verified using RESTCONF/NETCONF. We "attributes": { "uptodate": true } - }, - { - "afi": "bgp-types:ipv4-address-family", - "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family", - "bgp-labeled-unicast:labeled-unicast-routes": {}, - "attributes": { - "uptodate": true - } } ] } @@ -352,11 +344,6 @@ Following configuration sample show a way to configure the Application Peer: "afi-safi-name": "openconfig-bgp-types:IPV4-UNICAST", "receive": true, "send-max": 0 - }, - { - "afi-safi-name": "openconfig-bgp-types:IPV4-LABELLED-UNICAST", - "receive": true, - "send-max": 0 } ] } @@ -387,14 +374,6 @@ The Application Peer presence can be verified via REST: "attributes": { "uptodate": false } - }, - { - "afi": "bgp-types:ipv4-address-family", - "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family", - "bgp-labeled-unicast:labeled-unicast-routes": {}, - "attributes": { - "uptodate": false - } } ] }, @@ -408,14 +387,6 @@ The Application Peer presence can be verified via REST: "attributes": { "uptodate": false } - }, - { - "afi": "bgp-types:ipv4-address-family", - "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family", - "bgp-labeled-unicast:labeled-unicast-routes": {}, - "attributes": { - "uptodate": false - } } ] } @@ -722,11 +693,6 @@ Also the same route should appeared in Loc-RIB now: } ] } - }, - { - "afi": "bgp-types:ipv4-address-family", - "safi": "bgp-labeled-unicast:labeled-unicast-subsequent-address-family", - "bgp-labeled-unicast:labeled-unicast-routes": {} } ] } @@ -840,4 +806,4 @@ In order to remove persisted configuration, simply rm -rf /var/lib/honeycomb bef == Postman collection with examples -All the request examples can be found {project-git-web}/bgp/bgp_postman_collection?h={project-branch}[BGP postman collection]. \ No newline at end of file +All the request examples can be found {project-git-web}/bgp/inet/bgp_inet_postman_collection.json?h={project-branch}[BGP postman collection]. \ No newline at end of file diff --git a/release-notes/src/main/asciidoc/user_guide/user_guide.adoc b/release-notes/src/main/asciidoc/user_guide/user_guide.adoc index 928882de8..268851747 100644 --- a/release-notes/src/main/asciidoc/user_guide/user_guide.adoc +++ b/release-notes/src/main/asciidoc/user_guide/user_guide.adoc @@ -85,4 +85,4 @@ collection] ** {project-git-web}/vpp-classifier/vpp_classifier_postman_collection.json?h={project-branch}[VPP classifier postman collection] ** {project-git-web}/vpp-classifier/policer_postman_collection.json?h={project-branch}[Policer postman collection] * BGP plugin -** {project-git-web}/bgp/bgp_postman_collection.json?h={project-branch}[BGP postman collection]. +** {project-git-web}/bgp/inet/bgp_inet_postman_collection.json?h={project-branch}[BGP postman collection]. -- cgit 1.2.3-korg