summaryrefslogtreecommitdiffstats
path: root/mpls
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-11-20 11:19:29 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-11-20 11:07:02 +0000
commit87e37b4f78ff60e3b8c84c3c6670e20c18e20b04 (patch)
treebcedbff88816902bb617df093f5b6e7df68f5bf3 /mpls
parent1f80540e8e412e5a246e78b9a2d6d0802182b213 (diff)
HC2VPP-255: postman collection with MPLS config examples
Examples of requests showing how to enable/disable MPLS on given interface and how to push labels. Change-Id: If6f6f708a9af53131ef57fede07a77fc0943c9ee Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'mpls')
-rw-r--r--mpls/mpls_postman_collection.json246
1 files changed, 246 insertions, 0 deletions
diff --git a/mpls/mpls_postman_collection.json b/mpls/mpls_postman_collection.json
new file mode 100644
index 000000000..f42de3a9c
--- /dev/null
+++ b/mpls/mpls_postman_collection.json
@@ -0,0 +1,246 @@
+{
+ "id": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "name": "Honeycomb MPLS calls",
+ "description": "",
+ "order": [
+ "e8d94648-0106-feaa-f436-1c0cd327d89c",
+ "94581eee-036d-dced-1495-1b5c8c35059d",
+ "14fedcfb-faf6-00f5-4673-c1074923b92e",
+ "22964c4c-3ba1-39fe-9a24-de6af2ca53a2",
+ "48779e1a-5a6d-9e76-c646-8f3eea9433d2",
+ "65f84720-3266-322f-9739-af804da451b7",
+ "5a271f51-ab7e-c007-882b-d5e0a99da138",
+ "15a16a52-17fe-f50a-a973-90947ef6c625",
+ "b98635ba-fc25-feb7-8281-1654a7639ebd",
+ "15f14fb1-a102-e482-814f-7c8afca13812",
+ "27b745d3-2fbe-0f02-d605-904f8188088f"
+ ],
+ "folders": [],
+ "timestamp": 1509091634177,
+ "owner": 0,
+ "public": false,
+ "requests": [
+ {
+ "id": "14fedcfb-faf6-00f5-4673-c1074923b92e",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/operational/ietf-interfaces:interfaces-state/",
+ "pathVariables": {},
+ "preRequestScript": "",
+ "method": "GET",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "data": [],
+ "dataMode": "raw",
+ "name": "List ifcs - oper",
+ "description": "",
+ "descriptionFormat": "html",
+ "time": 1509094553742,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
+ },
+ {
+ "id": "15a16a52-17fe-f50a-a973-90947ef6c625",
+ "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/static-lsp1",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "PUT",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1511172867181,
+ "name": "Add route with two MPLS labels",
+ "description": "Corresponding CLI command:\n\nip route add 10.10.24.0/24 via 10.10.12.2 loop1 out-labels 102 104\n\nCan be verified via CLI using:\n\nshow ip fib",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": "{\n \"static-lsp\": [\n {\n \"name\": \"static-lsp1\",\n \"config\": {\n \"in-segment\": {\n \"ip-prefix\": \"10.10.24.0/24\"\n },\n \"operation\": \"impose-and-forward\",\n \"paths\": [\n {\n \"path-index\": 0,\n \"next-hop\": \"10.10.12.2\",\n \"outgoing-labels\": [\n 102,\n 104\n ],\n \"outgoing-interface\": \"loop0\"\n }\n ]\n }\n }\n ]\n}"
+ },
+ {
+ "id": "15f14fb1-a102-e482-814f-7c8afca13812",
+ "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/",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "GET",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1509715185345,
+ "name": "Get static LSPs (cfg)",
+ "description": "",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": ""
+ },
+ {
+ "id": "22964c4c-3ba1-39fe-9a24-de6af2ca53a2",
+ "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": 1511172459957,
+ "name": "Enable mpls on loop0 interface",
+ "description": "Correspondig CLI command:\n\nset interface mpls loop0 enable",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"config\": {\n \"enabled\": \"true\"\n }\n }\n ]\n}"
+ },
+ {
+ "id": "27b745d3-2fbe-0f02-d605-904f8188088f",
+ "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": "DELETE",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1511172494988,
+ "name": "Disable mpls on loop0 interface",
+ "description": "Correspondig CLI command:\n\nset interface mpls loop0 disable",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": ""
+ },
+ {
+ "id": "48779e1a-5a6d-9e76-c646-8f3eea9433d2",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpls:mpls",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "GET",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1509715030301,
+ "name": "Get mpls interfaces (cfg)",
+ "description": "",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": ""
+ },
+ {
+ "id": "5a271f51-ab7e-c007-882b-d5e0a99da138",
+ "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/static-lsp0",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "DELETE",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1511172422196,
+ "name": "Delete route with single MPLS labels",
+ "description": "Corresponding CLI command:\n\nip route del 10.10.34.0/24 via 10.10.13.3 loop0 out-labels 111",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": ""
+ },
+ {
+ "id": "65f84720-3266-322f-9739-af804da451b7",
+ "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/static-lsp0",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "PUT",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1511172263301,
+ "name": "Add route with single MPLS labels",
+ "description": "Corresponding CLI command:\n\nip route add 10.10.34.0/24 via 10.10.13.3 loop0 out-labels 111\n\nCan be verified via CLI using:\n\nshow ip fib",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": "{\n \"static-lsp\": [\n {\n \"name\": \"static-lsp0\",\n \"config\": {\n \"in-segment\": {\n \"ip-prefix\": \"10.10.34.0/24\"\n },\n \"operation\": \"impose-and-forward\",\n \"next-hop\": \"10.10.13.3\",\n \"outgoing-label\": 111,\n \"outgoing-interface\": \"loop0\"\n }\n }\n ]\n}"
+ },
+ {
+ "id": "94581eee-036d-dced-1495-1b5c8c35059d",
+ "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nContent-Type: application/json\n",
+ "url": "http://localhost:8183/restconf/config/ietf-interfaces:interfaces/",
+ "pathVariables": {},
+ "preRequestScript": "",
+ "method": "GET",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "data": [],
+ "dataMode": "raw",
+ "name": "List ifcs - cfg",
+ "description": "",
+ "descriptionFormat": "html",
+ "time": 1509094536608,
+ "version": 2,
+ "responses": [],
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"testInterface\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"iana-if-type:ethernetCsmacd\",\r\n \"enabled\": \"true\",\r\n \"link-up-down-trap-enable\": \"enabled\",\r\n \"ietf-ip:ipv4\": {\r\n \"enabled\": \"true\",\r\n \"mtu\": \"1500\",\r\n \"address\": [\r\n {\r\n \"ip\": \"1.2.3.0\",\r\n \"netmask\": \"255.255.255.0\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n \r\n}"
+ },
+ {
+ "id": "b98635ba-fc25-feb7-8281-1654a7639ebd",
+ "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/static-lsp1",
+ "preRequestScript": "",
+ "pathVariables": {},
+ "method": "DELETE",
+ "data": [],
+ "dataMode": "raw",
+ "version": 2,
+ "tests": "",
+ "currentHelper": "normal",
+ "helperAttributes": {},
+ "time": 1511172427485,
+ "name": "Delete route with two MPLS labels",
+ "description": "Corresponding CLI command:\n\nip route del 10.10.24.0/24 via 10.10.12.2 loop1 out-labels 102 104",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": ""
+ },
+ {
+ "id": "e8d94648-0106-feaa-f436-1c0cd327d89c",
+ "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": 1511172015125,
+ "name": "Add loopback ifc ",
+ "description": "Corresponding CLI command:\n\ncreate loop interface",
+ "collectionId": "5e8b5d56-56c7-e7b4-452a-0da051658425",
+ "responses": [],
+ "rawModeData": "{\r\n \r\n \"interface\": [\r\n {\r\n \"name\": \"loop0\",\r\n \"description\": \"for testing purposes\",\r\n \"type\": \"v3po:loopback\",\r\n \"loopback\" :{\r\n \"mac\" : \"00:ff:ff:ff:ff:ff\"\r\n }\r\n }\r\n ]\r\n \r\n}"
+ }
+ ]
+} \ No newline at end of file