Skip to content

Commit

Permalink
Closes-Bug: #1663224 - SM lite listens on Docker0 interface
Browse files Browse the repository at this point in the history
Closes-Bug: #1654531 - Preventing SM from using docker0 as listen interface

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]

Pls note: --hostip is still MANDATORY for multi interface setups where it is required to specify which IP SM has to listen on

Change-Id: I543854d2904a015eca3d883069d9f930bfcfde7f
  • Loading branch information
nitishkrishna committed Feb 10, 2017
1 parent 81fa957 commit 2f0e751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/debian/contrail-server-manager-lite/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 2f0e751

Please sign in to comment.