mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
commit
b24e92316c
@ -1471,7 +1471,7 @@ sub nodeonmynet
|
||||
my $nettab = xCAT::Table->new("networks");
|
||||
my @vnets = $nettab->getAllAttribs('net', 'mgtifname', 'mask');
|
||||
foreach (@vnets) {
|
||||
if ((defined $_->{mgtifname}) && ($_->{mgtifname} eq '!remote!'))
|
||||
if ((defined $_->{mgtifname}) && ($_->{mgtifname} =~ /!remote!/))
|
||||
{
|
||||
if (xCAT::NetworkUtils->ishostinsubnet($nodeip, $_->{mask}, $_->{net}))
|
||||
{
|
||||
@ -1508,7 +1508,7 @@ sub nodeonmynet
|
||||
my $nettab = xCAT::Table->new("networks");
|
||||
my @vnets = $nettab->getAllAttribs('net', 'mgtifname', 'mask');
|
||||
foreach (@vnets) {
|
||||
if ((defined $_->{mgtifname}) && ($_->{mgtifname} eq '!remote!'))
|
||||
if ((defined $_->{mgtifname}) && ($_->{mgtifname} =~ /!remote!/))
|
||||
{ #global scoped network
|
||||
my $curm = unpack("N", inet_aton($_->{mask}));
|
||||
my $bits = 32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user