From 45ff15982c1ed46e9f7e4b745f616c4d7b1b1a2e Mon Sep 17 00:00:00 2001 From: yinle Date: Sun, 18 Sep 2011 15:34:09 +0000 Subject: [PATCH] minor fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10547 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index a39ab6a38..6e2c82562 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -2100,6 +2100,7 @@ sub parse_responses { trace( $request, "Can't get networks information from networks table" , 1); } else { foreach my $enet (@nets) { + next if ($enet->{'net'} =~ /:/); $net{$enet->{'mgtifname'}}{subnet} = $enet->{'net'}; $net{$enet->{'mgtifname'}}{netmask} = $enet->{'mask'}; } @@ -2351,8 +2352,8 @@ sub parse_responses { $matchhmc = 1; $result[4] = $ii; } elsif (exists($opt{i})){ - my $subnet = $addr{$ii}{subnet}; - my $netmask = $addr{$ii}{netmask}; + my $subnet = $addr{$opt{i}}{subnet}; + my $netmask = $addr{$opt{i}}{netmask}; if(xCAT::NetworkUtils->ishostinsubnet($ii, $netmask, $subnet)) { $matchhmc = 1; $result[4] = $ii;