From c95b277a4adb1ddb2499e9313017fc66c900e067 Mon Sep 17 00:00:00 2001 From: Bin Xu Date: Thu, 29 Jun 2017 16:51:31 +0800 Subject: [PATCH] Fix 3368, "noboot" is not working for mknb when multiple interfaces, and it is caused by something wrong in "get_nic_ip" (#3371) --- perl-xCAT/xCAT/NetworkUtils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/NetworkUtils.pm b/perl-xCAT/xCAT/NetworkUtils.pm index 0c62fb7a0..d54bf253b 100755 --- a/perl-xCAT/xCAT/NetworkUtils.pm +++ b/perl-xCAT/xCAT/NetworkUtils.pm @@ -736,7 +736,7 @@ sub get_nic_ip my %iphash; my $mode = "MULTICAST"; my $payingattention = 0; - my $interface; + my $interface = ""; my $keepcurrentiface; @@ -793,6 +793,7 @@ sub get_nic_ip delete $iphash{$interface}; } $keepcurrentiface = 0; + $interface = ""; if (!($line =~ /LOOPBACK/) and $line =~ /UP( |,|>)/ and $line =~ /$mode/) {