Skip to content

Commit

Permalink
Closes-Bug: #1654531 - Prevent SM Cliff Client from using docker0 int…
Browse files Browse the repository at this point in the history
…f as listen addr

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: Icbe34861d133ce05d915f7dd47eac4a6667f34b7
  • Loading branch information
nitishkrishna committed Feb 2, 2017
1 parent aa79386 commit 2004339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smgr_cliff_client/setup_server_manager_client.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

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 2004339

Please sign in to comment.