summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/docker/bgp_demo/postman_collection.json4
-rw-r--r--examples/docker/mpls_demo/postman_collection.json16
-rwxr-xr-xexamples/docker/test/show_interfaces_state.sh4
3 files changed, 12 insertions, 12 deletions
diff --git a/examples/docker/bgp_demo/postman_collection.json b/examples/docker/bgp_demo/postman_collection.json
index 825f41820..7c2dacc0e 100644
--- a/examples/docker/bgp_demo/postman_collection.json
+++ b/examples/docker/bgp_demo/postman_collection.json
@@ -289,7 +289,7 @@
"raw": "{\n \"interface\": [\n {\n \"name\": \"loop0\",\n \"enabled\": true,\n \"type\": \"v3po:loopback\",\n \"ietf-ip:ipv4\": {\n \"address\": [\n {\n \"ip\": \"10.100.1.1\",\n \"prefix-length\": 24\n }\n ]\n },\n \"v3po:ethernet\": {\n \"mtu\": 9216\n }\n }\n ]\n}"
},
"url": {
- "raw": "https://172.17.0.3:8445/restconf/operational/ietf-interfaces:interfaces-state/interface/loop0",
+ "raw": "https://172.17.0.3:8445/restconf/operational/ietf-interfaces:interfaces/interface/loop0",
"protocol": "https",
"host": [
"172",
@@ -301,7 +301,7 @@
"path": [
"restconf",
"operational",
- "ietf-interfaces:interfaces-state",
+ "ietf-interfaces:interfaces",
"interface",
"loop0"
]
diff --git a/examples/docker/mpls_demo/postman_collection.json b/examples/docker/mpls_demo/postman_collection.json
index a2ca7fc11..2ebf73bc0 100644
--- a/examples/docker/mpls_demo/postman_collection.json
+++ b/examples/docker/mpls_demo/postman_collection.json
@@ -354,7 +354,7 @@
"raw": "{\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}"
},
"url": {
- "raw": "https://172.17.0.4:8445/restconf/operational/ietf-interfaces:interfaces-state/",
+ "raw": "https://172.17.0.4:8445/restconf/operational/ietf-interfaces:interfaces/",
"protocol": "https",
"host": [
"172",
@@ -366,7 +366,7 @@
"path": [
"restconf",
"operational",
- "ietf-interfaces:interfaces-state",
+ "ietf-interfaces:interfaces",
""
]
}
@@ -652,7 +652,7 @@
"raw": "{\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}"
},
"url": {
- "raw": "https://172.17.0.5:8445/restconf/operational/ietf-interfaces:interfaces-state/",
+ "raw": "https://172.17.0.5:8445/restconf/operational/ietf-interfaces:interfaces/",
"protocol": "https",
"host": [
"172",
@@ -664,7 +664,7 @@
"path": [
"restconf",
"operational",
- "ietf-interfaces:interfaces-state",
+ "ietf-interfaces:interfaces",
""
]
}
@@ -1142,7 +1142,7 @@
"raw": "{\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}"
},
"url": {
- "raw": "https://172.17.0.2:8445/restconf/operational/ietf-interfaces:interfaces-state/",
+ "raw": "https://172.17.0.2:8445/restconf/operational/ietf-interfaces:interfaces/",
"protocol": "https",
"host": [
"172",
@@ -1154,7 +1154,7 @@
"path": [
"restconf",
"operational",
- "ietf-interfaces:interfaces-state",
+ "ietf-interfaces:interfaces",
""
]
}
@@ -1554,7 +1554,7 @@
"raw": "{\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}"
},
"url": {
- "raw": "https://172.17.0.3:8445/restconf/operational/ietf-interfaces:interfaces-state/",
+ "raw": "https://172.17.0.3:8445/restconf/operational/ietf-interfaces:interfaces/",
"protocol": "https",
"host": [
"172",
@@ -1566,7 +1566,7 @@
"path": [
"restconf",
"operational",
- "ietf-interfaces:interfaces-state",
+ "ietf-interfaces:interfaces",
""
]
}
diff --git a/examples/docker/test/show_interfaces_state.sh b/examples/docker/test/show_interfaces_state.sh
index 06d972e79..fe154b2e7 100755
--- a/examples/docker/test/show_interfaces_state.sh
+++ b/examples/docker/test/show_interfaces_state.sh
@@ -3,10 +3,10 @@
# Obtain IP of the container
# $1 - container name
ip=$(/hc2vpp/test/docker_ip.sh $1)
-url="https://$ip:8445/restconf/operational/ietf-interfaces:interfaces-state/"
+url="https://$ip:8445/restconf/operational/ietf-interfaces:interfaces/"
echo "GET $url"
-# Show interfaces-state
+# Show interfaces
curl --insecure -X GET $url \
-H 'authorization: Basic YWRtaW46YWRtaW4=' \
-H 'cache-control: no-cache' \