diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-04-30 09:03:13 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-04-30 09:03:13 +0200 |
commit | e4c58493ce5265ea0d1e17d160c339401c406186 (patch) | |
tree | 4f7ac75773ad305b04982737e0500d613f24603e /examples/docker/test/show_interfaces_state.sh | |
parent | 2e96f3423a2619cd2aa9d188de513723416c15e6 (diff) |
Move docker files to examples directory
Change-Id: Ib2eb3dbae76a1e9b5d98ce9e0d5eea9adba280cf
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'examples/docker/test/show_interfaces_state.sh')
-rwxr-xr-x | examples/docker/test/show_interfaces_state.sh | 15 |
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 |