From 2f0e751ab3a973d4473bd59fd2ea707943bf668d Mon Sep 17 00:00:00 2001 From: nitishkrishna Date: Thu, 9 Feb 2017 20:57:04 -0800 Subject: [PATCH] Closes-Bug: #1663224 - SM lite listens on Docker0 interface 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 --- common/debian/contrail-server-manager-lite/debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/debian/contrail-server-manager-lite/debian/postinst b/common/debian/contrail-server-manager-lite/debian/postinst index 16619d5dc..c7871cc63 100755 --- a/common/debian/contrail-server-manager-lite/debian/postinst +++ b/common/debian/contrail-server-manager-lite/debian/postinst @@ -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