Fix nbroot discovery broadcast domain collision semantics
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1113 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ab6e434fc9
commit
cf20516682
@ -101,7 +101,7 @@ while :; do
|
||||
MYB=`ifconfig $nic|grep "Bcast"|awk '{print $3}'|awk -F: '{print $2}'`
|
||||
for dnic in `ifconfig -a|grep HWaddr|grep -v sit|awk '{print $1}'|grep -v $nic`; do
|
||||
OTB=`ifconfig $dnic|grep "Bcast"|awk '{print $3}'|awk -F: '{print $2}'`
|
||||
if [ "$OTB" == "$MYB" ]; then # if broadcasts match, down the other nic
|
||||
if [ ! -z "$MYB" -a "$OTB" == "$MYB" ]; then # if broadcasts match, down the other nic
|
||||
ifconfig $dnic down
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user