2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

1596:Enhance the process of reinstall for PCM

This commit is contained in:
root 2016-07-27 03:50:30 -04:00
parent 43c03d046e
commit dd783ff14b

View File

@ -996,8 +996,16 @@ Usage:
# Add BMC/FSP as reserve NICs and not remove it form nics table
foreach my $oldNic (keys %$oldNicsRef) {
if ($oldNicsRef->{$oldNic}->{'type'} ne 'BMC' and $oldNicsRef->{$oldNic}->{'type'} ne 'FSP') {
$updateNicsHash{$oldNic} = 1;
if ($oldNicsRef->{$oldNic}->{'type'} ne 'BMC' and $oldNicsRef->{$oldNic}->{'type'} ne 'FSP'){
if ($oldNicsRef->{$oldNic}->{'network'} eq $newNicsRef->{$oldNic}->{'network'}){
$reserveNicsHash{$oldNic} = 1;
if(exists $updateNicsHash{$oldNic})
{
delete($updateNicsHash{$oldNic});
}
} else {
$updateNicsHash{$oldNic} = 1;
}
} else {
$reserveNicsHash{$oldNic} = 1;
}