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
This commit is contained in:
yinle 2012-02-07 13:02:53 +00:00
parent 1fbbcf8487
commit bb2b37563b

View File

@ -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+)/ ) {