]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Implement IP address allocation.
authorGary Kotton <gkotton@redhat.com>
Thu, 21 Jun 2012 08:53:48 +0000 (04:53 -0400)
committerGary Kotton <gkotton@redhat.com>
Fri, 29 Jun 2012 09:12:44 +0000 (05:12 -0400)
commit681d096ef26247f6f8db8faca1abe9ae6a186562
treee772834a8ef2a6f2d5b3a4fb3e60023a15c63c35
parentf54a788cae726b8e1480e27c0a416c66a7afb373
Implement IP address allocation.

This fixes bug 1008029.

The allocation is done as follows (according to the value of
port['fixed_ips']):
- api_router.ATTR_NOT_SPECIFIED - Quantum will generate an IP address.
If a v4 subnet is defined then a v4 address will be generated. If
a v6 subnet is defined then a v6 address will be generated. If both are
defined then both v4 and v6 addresses will be generated.
- user configuration which may contain a list of the following:
   - ip_address - the specific IP address will be generated
   - subnet_id - an IP address from the subnet will be generated

Change-Id: I3bb1b83b8824364b37dbecfa140331c4a1fd2762
quantum/api/v2/base.py
quantum/api/v2/router.py
quantum/common/exceptions.py
quantum/db/db_base_plugin_v2.py
quantum/db/models_v2.py
quantum/tests/unit/test_api_v2.py
quantum/tests/unit/test_db_plugin.py