diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 48bc7f738..97d7ff713 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -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; } #-------------------------------------------------------------------------------