X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fexport_ips;h=a345a4b92fcfc7a425f5441dde511a0a5bd72c16;hb=HEAD;hp=fcca76ef049d86f679c0bd9036f47e498e276a45;hpb=0b6e5398bfb4f471747d634eedee0471c5b294e7;p=osm%2Fdevops.git diff --git a/installers/export_ips b/installers/export_ips index fcca76ef..a345a4b9 100644 --- a/installers/export_ips +++ b/installers/export_ips @@ -17,9 +17,9 @@ # 23 Sept 2016 -- Gerardo Garcia -- Genesis #Get IP addresses -DEFAULT_IF=`route -n |awk '$1~/0.0.0.0/ {print $8}'` +DEFAULT_IF=`route -n |awk '$1~/^0.0.0.0/ {print $8}'` export DEFAULT_IP=`ip -o -4 a |grep ${DEFAULT_IF}|awk '{split($4,a,"/"); print a[1]}'` export VCA_CONTAINER_IP=`lxc list VCA -c 4|grep eth0 |awk '{print $2}'` export SO_CONTAINER_IP=`lxc list SO-ub -c 4|grep eth0 |awk '{print $2}'` export RO_CONTAINER_IP=`lxc list RO -c 4|grep eth0 |awk '{print $2}'` - +export MON_CONTAINER_IP=`lxc list MON -c 4|grep eth0|awk '{print $2}'`