-Give errors on makedns on certain evidently frequent weird things being tried unintentionally
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2081 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f247b8293c
commit
c428cafb63
@ -825,7 +825,11 @@ sub PARSEARGS {
|
||||
}
|
||||
$net =~ s/\.$//;
|
||||
|
||||
if (not $net) {
|
||||
$callback->({error=>["Empty network found in networks table (i.e. ,,,,), This is almost certainly going to cause a problem..."],errorcode=>[1]});
|
||||
}
|
||||
if ($subnetmask eq "") {
|
||||
$callback->({error=>["$net has no defined netmask in the networks table, the result will probably be wrong"],errorcode=>[1]});
|
||||
foreach $tmp1 (&SUBNETS($net, $Defsubnetmask)) {
|
||||
&BUILDNET($tmp1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user