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

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 not sure that I understand. I do not understand how the configuration parameters affect the search. Can you please clarify. The above proposal is changing the input from the user.
Happy Hacking!

7-11




--
Mailing list: https://launchpad.net/~netstack
Post to     : netstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to