updated to support remote/distributed networks for DHCP relays or remote flags in networks table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4968 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
25ab309d45
commit
84a9c3fe98
@ -2203,6 +2203,21 @@ sub my_nets
|
||||
$textnet.="/$maskbits";
|
||||
$rethash->{$textnet} = $curnet;
|
||||
}
|
||||
|
||||
|
||||
my $nettab = xCAT::Table->new("networks");
|
||||
my @vnets = $nettab->getAllAttribs('net','mgtifname','mask');
|
||||
foreach(@vnets){
|
||||
my $n = $_->{net};
|
||||
my $if = $_->{mgtifname};
|
||||
my $nm = $_->{mask};
|
||||
if ($if =~ /!remote!/) { #only take in networks with special interface
|
||||
$nm = formatNetmask($nm, 0 , 1);
|
||||
$n .="/$nm";
|
||||
$rethash->{$n} = $if;
|
||||
}
|
||||
}
|
||||
|
||||
return $rethash;
|
||||
}
|
||||
#-------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user