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

Salvatore Orlando sorlando at nicira.com
Tue Mar 24 00:07:57 UTC 2015

I just think that we might bury this discussion considering what Carl said,
and that I agree with.
So far we don't even know if we'll ever need this feature. When a concrete
use case will come for asking things like: gimme a /22 Ipv4 network and
make sure I have a pool spanning from the 1st to the 444th address, and
that the gateway IP is the 555th address, then we'll think about that.

Just for the sake of it, in the example above I've used Kevin's proposed
notation, but simply because it's a bit more natural to me. I frankly
believe both address-index and "relative network address" not that good
from a usability perspective, but probably in this case there's just no way
to ensure good API UX.


On 24 March 2015 at 00:36, Kevin Benton <blak111 at gmail.com> wrote:

> 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.

I think this is the plan. So far we've seen only dotted-quad examples for
simplicity I guess

> 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.

Just like dotted-quad notation might be usable only for people used to
subnetting, masking and other IP network arithmetics, -1 would suits only
developers fluent in a specific sets of languages...

> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150324/f5a01089/attachment.html>

More information about the OpenStack-dev mailing list