From ed70e5036b561440a66e158640af988dc27e1eeb Mon Sep 17 00:00:00 2001 From: nitishkrishna Date: Mon, 30 Jan 2017 16:07:16 -0800 Subject: [PATCH] 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] Change-Id: I5c99882181804d3e3df23522d200c4570a0ea409 --- common/debian/contrail-server-manager/debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/debian/contrail-server-manager/debian/postinst b/common/debian/contrail-server-manager/debian/postinst index 8a18a95c6..f1d785e6c 100644 --- a/common/debian/contrail-server-manager/debian/postinst +++ b/common/debian/contrail-server-manager/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