Limit allocation_pools per subnet

Creates a quota for allocation pools per subnet.

RM#9974
Also fixes RM#9874
I didn't notice you were accessing a private member last time I reviewed this patch. Have you considered implementing `AllocationPools.__len__`?