Skip to content

Commit

Permalink
Fix 3368, "noboot" is not working for mknb when multiple interfaces, …
Browse files Browse the repository at this point in the history
…and it is caused by something wrong in "get_nic_ip" (#3371) (#3372)
  • Loading branch information
robin2008 authored and immarvin committed Jun 29, 2017
1 parent 371527b commit 1185459
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion perl-xCAT/xCAT/NetworkUtils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ sub get_nic_ip
my %iphash;
my $mode = "MULTICAST";
my $payingattention = 0;
my $interface;
my $interface = "";
my $keepcurrentiface;


Expand Down Expand Up @@ -793,6 +793,7 @@ sub get_nic_ip
delete $iphash{$interface};
}
$keepcurrentiface = 0;
$interface = "";
if (!($line =~ /LOOPBACK/) and
$line =~ /UP( |,|>)/ and
$line =~ /$mode/) {
Expand Down

0 comments on commit 1185459

Please sign in to comment.