show_interfaces_state.sh revision 5543345d
1#!/bin/bash
2
3# Obtain IP of the container
4# $1 - container name
5ip=$(/hc2vpp/test/docker_ip.sh $1)
6url="https://$ip:8445/restconf/operational/ietf-interfaces:interfaces/"
7echo "GET $url"
8
9# Show interfaces
10curl --insecure -X GET $url \
11  -H 'authorization: Basic YWRtaW46YWRtaW4=' \
12  -H 'cache-control: no-cache' \
13  -H 'content-type: application/json'
14
15echo
16