Workaround issues when getipaddr returns undefined value in ddns
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9827 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5b26f94f27
commit
212ec6ecec
@ -36,6 +36,7 @@ sub getzonesfornet {
|
||||
die "Not supporting having a mask like $mask on an ipv6 network like $net";
|
||||
}
|
||||
my $netnum= getipaddr($net,GetNumber=>1);
|
||||
unless ($netnum) { return (); }
|
||||
$netnum->brsft(128-$maskbits);
|
||||
my $prefix=$netnum->as_hex();
|
||||
my $nibbs=$maskbits/4;
|
||||
|
Loading…
Reference in New Issue
Block a user