projects
/
osm
/
devops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e460692
)
- add ^ to regex to avoid matching against 10.*/etc networks
07/907/1
author
Mike Marchetti
<mmarchetti@sandvine.com>
Tue, 10 Jan 2017 17:30:23 +0000
(17:30 +0000)
committer
Mike Marchetti
<mmarchetti@sandvine.com>
Tue, 10 Jan 2017 17:30:23 +0000
(17:30 +0000)
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
installers/export_ips
patch
|
blob
|
history
diff --git
a/installers/export_ips
b/installers/export_ips
index
fcca76e
..
d651b28
100644
(file)
--- 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}'`