On 06/20/2012 09:42 PM, Dan Wendlandt wrote:
On Wed, Jun 20, 2012 at 9:05 AM, Gary Kotton <gkot...@redhat.com
<mailto:gkot...@redhat.com>> 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. The dictionary has the
following key value pairs:
'subnet_id' : <subnet uuid> This is mandatory if configured.
'ip_address': <a ip v4 or ipv6 address - depending on the
subnet defined above>. This is optional.
The server will treat the values as follows:
i. If this is not set then then a address will be allocated if
there is a subnet defined on the network. This will be done for
IPv4 and IPv6 subnets.
ii. If only the subnet ID is set then the server will assign
an IP address from the specific subnet
iii. If both are set the server will allocate this address (if
it has not already been allocated :))
Please note that in all of the above cases the input will be
checked for validity, for example - the subnet_id is a configured
subnet on the network etc.
I think this makes sense, and seems inline with some feedback on the
API v2 wiki.
One other case to consider is how someone adds/removes an IP after the
fact to a port. The model I was thinking was that a PUT can update
the list, and we effectively do a diff agains the previous list,
add/removing IPs if needed. To request a new IP be allocated from the
subnet on up update, just add an entry to the list that includes only
a subnet_id (as is the case with add).
OK, sounds reasonable.
dan
Please let me know if you have any comments.
Thanks
Gary
--
Mailing list: https://launchpad.net/~netstack
<https://launchpad.net/%7Enetstack>
Post to : netstack@lists.launchpad.net
<mailto:netstack@lists.launchpad.net>
Unsubscribe : https://launchpad.net/~netstack
<https://launchpad.net/%7Enetstack>
More help : https://help.launchpad.net/ListHelp
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Wendlandt
Nicira, Inc: www.nicira.com <http://www.nicira.com>
twitter: danwendlandt
~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
Mailing list: https://launchpad.net/~netstack
Post to : netstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~netstack
More help : https://help.launchpad.net/ListHelp