updated to fix xnba problems

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
vallard 2010-01-20 02:14:46 +00:00
parent e4d0f1b23f
commit 84cbeb2eb4

View File

@ -2204,20 +2204,24 @@ sub my_nets
$rethash->{$textnet} = $curnet;
}
# now get remote nets
my $nettab = xCAT::Table->new("networks");
my $sitetab = xCAT::Table->new("site");
my $master = $sitetab->getAttribs({key=>'master'},'value');
$master = $master->{value};
my @vnets = $nettab->getAllAttribs('net','mgtifname','mask');
foreach(@vnets){
my $n = $_->{net};
my $if = $_->{mgtifname};
my $nm = $_->{mask};
my $nm = $_->{mask};
if ($if =~ /!remote!/) { #only take in networks with special interface
$nm = formatNetmask($nm, 0 , 1);
$n .="/$nm";
$rethash->{$n} = $if;
}
$n .="/$nm";
#$rethash->{$n} = $if;
$rethash->{$n} = $master;
}
}
return $rethash;
}
#-------------------------------------------------------------------------------