[openstack-dev] [api][neutron] Best API for generating subnets from pool

Kevin Benton blak111 at gmail.com
Mon Mar 23 23:36:06 UTC 2015

I don't think they would be surprised if we call it offset or index.

>To me, didn't say that I'd get something ending in .63.

Perhaps this is just a difference in backgrounds then. Even though I'm work
on network stuff all of the time, when I see that it's not obvious that it
will be masked with the inverse subnet mask to get the host bits and then
combine it with the network to get the real address. Do you have some
examples where this syntax is used elsewhere?

Ignoring the usability concern since that might just be an issue with me,
there are two other reasons that still make an integer preferable to me.
First, the dotted-quad notation unnecessarily ties it to IPv4. If this is
going to work for IPv6 subnets at some point, we would need to support both
formats, each with their own validation logic, even though they are
ultimately representing the same idea. Second, using an integer could allow
negatives to make asking for the last address in the subnet as simple as
'-1' instead of making the user calculate it out.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150323/04b608ba/attachment.html>

More information about the OpenStack-dev mailing list