check if maskbits indivisible by 4

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11575 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2012-02-15 05:52:55 +00:00
parent aa40e86d49
commit 2975af1e14

View File

@ -44,7 +44,7 @@ sub getzonesfornet {
if ($net =~ /:/) {#ipv6, for now do the simple stuff under the assumption we won't have a mask indivisible by 4
$net =~ s/\/(.*)//;
my $maskbits=$1;
if ($mask) {
if ($maskbits%4) {
die "Not supporting having a mask like $mask on an ipv6 network like $net";
}
my $netnum= getipaddr($net,GetNumber=>1);