Skip to content
Snippets Groups Projects
Commit 320a2da3 authored by Mike Marchetti's avatar Mike Marchetti
Browse files

- add ^ to regex to avoid matching against 10.*/etc networks


Signed-off-by: default avatarMike Marchetti <mmarchetti@sandvine.com>
parent e460692a
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
# 23 Sept 2016 -- Gerardo Garcia -- Genesis # 23 Sept 2016 -- Gerardo Garcia -- Genesis
#Get IP addresses #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 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 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 SO_CONTAINER_IP=`lxc list SO-ub -c 4|grep eth0 |awk '{print $2}'`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment