From 320a2da3e1d719a5e0447378344f02ffbee2f609 Mon Sep 17 00:00:00 2001 From: Mike Marchetti Date: Tue, 10 Jan 2017 17:30:23 +0000 Subject: [PATCH] - add ^ to regex to avoid matching against 10.*/etc networks Signed-off-by: Mike Marchetti --- installers/export_ips | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/export_ips b/installers/export_ips index fcca76ef..d651b28a 100644 --- a/installers/export_ips +++ b/installers/export_ips @@ -17,7 +17,7 @@ # 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}'` -- 2.25.1