blob: dc868dbea937036eed3fb954a72eb47c90ca4785 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
# Obtain IP of the container
# $1 - container name
ip=$($(dirname $0)/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
|