test: Fix networking helpers indentation

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz 2016-12-21 12:26:18 +01:00
parent b6455253c2
commit 8e1af3668a
No known key found for this signature in database
GPG key ID: 8A803CDD4F566C4A

View file

@ -235,14 +235,14 @@ function check_pod_cidr() {
} }
function parse_pod_ip() { function parse_pod_ip() {
for arg for arg
do do
cidr=`echo "$arg" | grep $POD_CIDR_MASK` cidr=`echo "$arg" | grep $POD_CIDR_MASK`
if [ "$cidr" == "$arg" ] if [ "$cidr" == "$arg" ]
then then
echo `echo "$arg" | sed "s/\/[0-9][0-9]//"` echo `echo "$arg" | sed "s/\/[0-9][0-9]//"`
fi fi
done done
} }
function ping_host_pod() { function ping_host_pod() {
@ -254,7 +254,7 @@ function ping_host_pod() {
} }
function ping_pod() { function ping_pod() {
netns=`ocic pod status --id $1 | grep namespace | cut -d ' ' -f 3` netns=`ocic pod status --id $1 | grep namespace | cut -d ' ' -f 3`
inet=`ip netns exec \`basename $netns\` ip addr show dev eth0 scope global | grep inet` inet=`ip netns exec \`basename $netns\` ip addr show dev eth0 scope global | grep inet`
IFS=" " IFS=" "