fix nodeonmynet to handle networks table with entries that have no mgtifname
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5627 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
688cfffe51
commit
d8b35737da
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user