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