Fix: 242668 [Rank6][Vlan] [Switch] [sles]Cannot found secure vlan network after flex up node in cluster within vlan

This commit is contained in:
qyin 2014-09-15 15:55:01 +08:00
parent 80772ee81c
commit ae1dde7d9a

View File

@ -1149,10 +1149,13 @@ Usage:
# Add reserve nics
foreach my $nicname (@reserveNics){
my $oldip = $nodesNicsRef->{$node}->{$nicname}->{"ip"};
if ($oldip) {
$nicipsAttr{$node}{nicips} .= $nicname."!".$oldip.",";
}
my $count = index($nicipsAttr{$node}{nicips}, $nicname);
if($count < 0) {
my $oldip = $nodesNicsRef->{$node}->{$nicname}->{"ip"};
if ($oldip) {
$nicipsAttr{$node}{nicips} .= $nicname."!".$oldip.",";
}
}
}
}