diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index e0f47c756..b833d608d 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -2412,7 +2412,8 @@ sub nodeonmynet my $nettab=xCAT::Table->new("networks"); my @vnets = $nettab->getAllAttribs('net','mgtifname','mask'); foreach (@vnets) { - if ($_->{mgtifname} eq '!remote!') { #global scoped network + if ((defined $_->{mgtifname}) && ($_->{mgtifname} eq '!remote!')) + { #global scoped network my $curm = unpack("N", inet_aton($_->{mask})); my $bits=32; until ($curm & 1) {