Re: [Netstack] V2 IP Address Allocations

2012-06-23 Thread Gary Kotton
On 06/22/2012 03:35 AM, Salvatore Orlando wrote: Joining Dan in the late-night fun of doing emails :) Replies inline. Salvatore On 21 June 2012 23:59, Dan Wendlandt wrote: On Thu, Jun 21, 2012 at 5:34 PM, Jason Kölker wrote: On Thu, 2012-06-21 at 14:56 +0300, Gary Kotton wrote: However, I

Re: [Netstack] V2 IP Address Allocations

2012-06-21 Thread Salvatore Orlando
Joining Dan in the late-night fun of doing emails :) Replies inline. Salvatore On 21 June 2012 23:59, Dan Wendlandt wrote: > > > On Thu, Jun 21, 2012 at 5:34 PM, Jason Kölker > wrote: >> >> On Thu, 2012-06-21 at 14:56 +0300, Gary Kotton wrote: >> > > However, I would probably use a slightly dif

Re: [Netstack] V2 IP Address Allocations

2012-06-21 Thread Dan Wendlandt
On Thu, Jun 21, 2012 at 5:34 PM, Jason Kölker wrote: > On Thu, 2012-06-21 at 14:56 +0300, Gary Kotton wrote: > > > However, I would probably use a slightly different syntax for > associating IPs: > > > > > > POST /v2.0/ips > > > > > > { > > >"subnet_id": "", > > >"port_id": "", > > >"i

Re: [Netstack] V2 IP Address Allocations

2012-06-21 Thread Jason Kölker
On Thu, 2012-06-21 at 14:56 +0300, Gary Kotton wrote: > > However, I would probably use a slightly different syntax for associating > > IPs: > > > > POST /v2.0/ips > > > > { > >"subnet_id": "", > >"port_id": "", > >"ip": "<{ipv4 | ipv6}>", > > } > > This entails that a port will have

Re: [Netstack] V2 IP Address Allocations

2012-06-21 Thread Jason Kölker
On Thu, 2012-06-21 at 10:27 +0100, Salvatore Orlando wrote: > > > We could do a query that specified filter network_id=ABC, but it was > > > already a bit wonky to do something like fixed_ips=10.0.0.2 because > > > fixed_ip was really a list, not a string. Were you envisioning a > > > model where

Re: [Netstack] V2 IP Address Allocations

2012-06-21 Thread Salvatore Orlando
Replies inline! Have a good day, Salvatore On 21 June 2012 12:56, Gary Kotton wrote: > On 06/21/2012 12:27 PM, Salvatore Orlando wrote: >> >> Hi, >> >> I am not entirely sure I've got this thread right - so I apologize in >> advance for any non sense. >> It seems it started with Gary asking whet

Re: [Netstack] V2 IP Address Allocations

2012-06-21 Thread Gary Kotton
On 06/21/2012 12:27 PM, Salvatore Orlando wrote: Hi, I am not entirely sure I've got this thread right - so I apologize in advance for any non sense. It seems it started with Gary asking whether we could restructure the request format for POST /v2/ports, but then it seems the discussion is now f

Re: [Netstack] V2 IP Address Allocations

2012-06-21 Thread Salvatore Orlando
Hi, I am not entirely sure I've got this thread right - so I apologize in advance for any non sense. It seems it started with Gary asking whether we could restructure the request format for POST /v2/ports, but then it seems the discussion is now focused on how we should search for IPs. I understan

Re: [Netstack] V2 IP Address Allocations

2012-06-20 Thread Gary Kotton
On 06/20/2012 09:42 PM, Dan Wendlandt wrote: On Wed, Jun 20, 2012 at 9:05 AM, Gary Kotton > wrote: Hi, In the API (http://wiki.openstack.org/QuantumV2APIIntro#Port), the user is able to pass /*fixed_ips_v4*/ and /*fixed_ips_v6*/. If possible can we p

Re: [Netstack] V2 IP Address Allocations

2012-06-20 Thread Jason Kölker
On Wed, 2012-06-20 at 12:02 -0700, Dan Wendlandt wrote: > > For example, if port was just: > > > { 'id' : XYZ, > 'network_id': "ABC" > 'fixed_ips': [ "10.0.0.2" ] > } > > > We could do a query that specified filter network_id=ABC, but it was > already a bit wonky to do something like fi

Re: [Netstack] V2 IP Address Allocations

2012-06-20 Thread Jason Kölker
On Wed, 2012-06-20 at 20:27 +0300, Gary Kotton wrote: > >> > >> Please let me know if you have any comments. > > The only issue is then we can't search by ip unless we invent a schema > > for nested resource searching. One of the reasons I was an advocate of a > > top level /ips resource. > I am no

Re: [Netstack] V2 IP Address Allocations

2012-06-20 Thread Dan Wendlandt
On Wed, Jun 20, 2012 at 9:39 AM, Jason Kölker wrote: > On Wed, 2012-06-20 at 19:05 +0300, Gary Kotton wrote: > > Hi, > > In the API (http://wiki.openstack.org/QuantumV2APIIntro#Port), the user > > is able to pass /*fixed_ips_v4*/ and /*fixed_ips_v6*/. If possible can > > we please change this to /

Re: [Netstack] V2 IP Address Allocations

2012-06-20 Thread Dan Wendlandt
On Wed, Jun 20, 2012 at 9:05 AM, Gary Kotton wrote: > ** > Hi, > In the API (http://wiki.openstack.org/QuantumV2APIIntro#Port), the user > is able to pass *fixed_ips_v4* and *fixed_ips_v6*. If possible can we > please change this to *fixed_ips**,* where the *fixed_ips* is a list of > dictionary's

Re: [Netstack] V2 IP Address Allocations

2012-06-20 Thread Gary Kotton
On 06/20/2012 07:39 PM, Jason Kölker wrote: On Wed, 2012-06-20 at 19:05 +0300, Gary Kotton wrote: Hi, In the API (http://wiki.openstack.org/QuantumV2APIIntro#Port), the user is able to pass /*fixed_ips_v4*/ and /*fixed_ips_v6*/. If possible can we please change this to /*fixed_ips*/_,_ where the

Re: [Netstack] V2 IP Address Allocations

2012-06-20 Thread Jason Kölker
On Wed, 2012-06-20 at 19:05 +0300, Gary Kotton wrote: > Hi, > In the API (http://wiki.openstack.org/QuantumV2APIIntro#Port), the user > is able to pass /*fixed_ips_v4*/ and /*fixed_ips_v6*/. If possible can > we please change this to /*fixed_ips*/_,_ where the /*fixed_ips*/ is a > list of dictio

[Netstack] V2 IP Address Allocations

2012-06-20 Thread Gary Kotton
Hi, In the API (http://wiki.openstack.org/QuantumV2APIIntro#Port), the user is able to pass /*fixed_ips_v4*/ and /*fixed_ips_v6*/. If possible can we please change this to /*fixed_ips*/_,_ where the /*fixed_ips*/ is a list of dictionary's. The dictionary has the following key value pairs: