<div dir="ltr">I just think that we might bury this discussion considering what Carl said, and that I agree with.<div>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.</div><div><br></div><div>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.</div><div><br></div><div>Salvatore</div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">On 24 March 2015 at 00:36, Kevin Benton <span dir="ltr"><<a href="mailto:blak111@gmail.com" target="_blank">blak111@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I don't think they would be surprised if we call it offset or index.<span class=""><div><br></div><div>><span style="font-size:12.8000001907349px">To me, </span><span style="font-size:12.8000001907349px">0.0.0.63 didn't say that I'd get something ending in .63.</span></div><div><br></div></span><div>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?</div><div><br></div><div>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.</div></div></blockquote><div><br></div><div>I think this is the plan. So far we've seen only dotted-quad examples for simplicity I guess</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> 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.</div></div></blockquote><div><br></div><div>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...</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div></div></div>