X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=env%2Flib%2Fcommon.sh;h=2009c58becfd740ddb881489cf0376fb2f43de1c;hb=7f5b95aaf15bca22ac6506ac5e1b5db0d0437222;hp=38088c3fd09aa5d85d982aa52ce477fbc6842fd9;hpb=867e35bfafc667ae19d9773dda6d74780dea72c7;p=icn.git diff --git a/env/lib/common.sh b/env/lib/common.sh index 38088c3..2009c58 100755 --- a/env/lib/common.sh +++ b/env/lib/common.sh @@ -147,7 +147,7 @@ function node_networkdata { exit 1 fi - printf " networks:\n" + printf "networks:\n" for network in $(cat $NODES_FILE | jq -r --arg name "$name" '.nodes[] | select(.name==$name) | .net.networks[].id'); do link=$(networkdata_networks_field $name $network "link") type=$(networkdata_networks_field $name $network "type") @@ -158,17 +158,17 @@ function node_networkdata { gateway=$(networkdata_networks_field $name $network "gateway") dns_nameservers=$(networkdata_networks_field $name $network "dns_nameservers") - printf " ${network}:\n" - printf " macAddress: ${mac}\n" - printf " type: ${type}\n" + printf " ${network}:\n" + printf " macAddress: ${mac}\n" + printf " type: ${type}\n" if [[ $ip_address != "null" ]]; then - printf " ipAddress: ${ip_address}\n" + printf " ipAddress: ${ip_address}\n" fi if [[ $gateway != "null" ]]; then - printf " gateway: ${gateway}\n" + printf " gateway: ${gateway}\n" fi if [[ $dns_nameservers != "null" ]]; then - printf " nameservers: ${dns_nameservers}\n" + printf " nameservers: ${dns_nameservers}\n" fi done }