2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-25 20:50:26 +00:00

[perl-xCAT] Fix #2521

This commit is contained in:
Samveen Gulati
2017-02-22 04:47:18 +00:00
parent 740090b938
commit b3f4c5cbdc

View File

@@ -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;