mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
1596:Enhance the process of reinstall for PCM
This commit is contained in:
parent
43c03d046e
commit
dd783ff14b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user