summaryrefslogtreecommitdiffstats
path: root/examples/docker/test/show_interfaces_state.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docker/test/show_interfaces_state.sh')
-rwxr-xr-xexamples/docker/test/show_interfaces_state.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/docker/test/show_interfaces_state.sh b/examples/docker/test/show_interfaces_state.sh
new file mode 100755
index 000000000..06d972e79
--- /dev/null
+++ b/examples/docker/test/show_interfaces_state.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# 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/"
+echo "GET $url"
+
+# Show interfaces-state
+curl --insecure -X GET $url \
+ -H 'authorization: Basic YWRtaW46YWRtaW4=' \
+ -H 'cache-control: no-cache' \
+ -H 'content-type: application/json'
+
+echo