From bb2b37563baf3951395190b307bf4eb0c8f91e4b Mon Sep 17 00:00:00 2001 From: yinle Date: Tue, 7 Feb 2012 13:02:53 +0000 Subject: [PATCH] fix bug :3466290 lsslp -m -i plugin error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11499 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/NetworkUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/NetworkUtils.pm b/perl-xCAT/xCAT/NetworkUtils.pm index 2a74f8eaf..5bfad9ca7 100755 --- a/perl-xCAT/xCAT/NetworkUtils.pm +++ b/perl-xCAT/xCAT/NetworkUtils.pm @@ -608,7 +608,7 @@ sub get_nic_ip $_ =~ /$mode / ) { my @ip = split /\n/; for my $ent ( @ip ) { - if ($ent =~ /^(eth\d)\s+/) { + if ($ent =~ /^(eth\d|ib\d|hf\d)\s+/) { $nic = $1; } if ( $ent =~ /^\s*inet addr:\s*(\d+\.\d+\.\d+\.\d+)/ ) {