Skip to content

Commit

Permalink
Closes-Bug: #1654531 - Preventing SM from using docker0 as listen int…
Browse files Browse the repository at this point in the history
…erface

During install, to automatically pickup correct interface to use, in case --hostip option is not given, we are explicitly blocking:

127.0.0.1 [localhost]
172.17.0.1 [docker0 default address]

Change-Id: I5c99882181804d3e3df23522d200c4570a0ea409
  • Loading branch information
nitishkrishna committed Jan 31, 2017
1 parent 5d43847 commit ed70e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/debian/contrail-server-manager/debian/postinst
Expand Up @@ -3,7 +3,7 @@
set -e

echo "running post install"
HOST_IP_LIST=`ifconfig | sed -n -e 's/:127\.0\.0\.1 //g' -e 's/ *inet addr:\([0-9.]\+\).*/\1/gp'`
HOST_IP_LIST=`ifconfig | sed -n -e 's/:127\.0\.0\.1 //g' -e 's/:172\.17\.0\.1//g' -e 's/ *inet addr:\([0-9.]\+\).*/\1/gp'`
HOST_IP=`echo $HOST_IP_LIST | cut -d' ' -f1`
if [ -f /opt/contrail/contrail_server_manager/IP.txt ];
then
Expand Down

0 comments on commit ed70e50

Please sign in to comment.