It would be good to be able to set the maximum mask length for root subnets, as it is when creating new subnets in a big system the drop down list for root subnet can be massive. In my environment the largest "root" prefix is a /24 anything below that is a customer allocation.
Anonymous
Hi David, I get what you mean, but the point would be that anyone creates subnets as desired, so if /29 for root is desired than ok :)
If it bothers you as admin that users can create such subnets there is a easy fix for that. Edit site/admin/manageSubnetEditResult.php and add below lines after CheckReferrer();
if($_POST['masterSubnetId']==0 && str_replace("/","",strstr($_POST['subnet'], "/"))<24 ) {
die('Subnet mask must be at least /24!');
}
Or you can limit permissions on section that only admins can create new root subnets and you can prepare in advance.
Will think about adding it to next release.
brm
Last edit: Miha Petkovsek 2013-07-04
I understand, however in practice, subnets are generally allocated in blocks for either a given purpose eg loopbacks or to a given location. As it is the workflow for creating a large number of subnets becomes very cumbersome with a large number of subnets in play, by limiting the mask length only the functional blocks can be shown as "root subnets" making the process a lot easier.