]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
create a Quantum port to reserve VIP address
authorMark McClain <mark.mcclain@dreamhost.com>
Mon, 18 Feb 2013 04:31:02 +0000 (23:31 -0500)
committerAaron Rosen <arosen@nicira.com>
Wed, 27 Feb 2013 23:03:02 +0000 (15:03 -0800)
commit0dc5e2a0022238ad1e1957bebbf14e459c3699c6
treec48c90c9683b053173b4f93913aeb2317905818a
parent2d1b74a110f79170f2749729c378483f36c0aa9a
create a Quantum port to reserve VIP address

fixes bug 1129672

The API previously allowed a VIP to be created without verifying that
the tenant had access to the subnet and that the address was valid and
available.  This change modifies VIP creation behavior to create a
Quantum port with the requested address.  If an address is not provided, an
address is allocated using the normal allocation process for the subnet.

This change also renames the port attribute to protocol_port to remove the
ambiguity about which type of port it represents.

Additional tests were added to validate the change in behavior.

Change-Id: Ib19ef653887da568364b4faa0d2c0fac30970b5f
quantum/db/loadbalancer/loadbalancer_db.py
quantum/db/migration/alembic_migrations/versions/54c2c487e913_lbaas.py
quantum/extensions/loadbalancer.py
quantum/tests/unit/db/loadbalancer/test_db_loadbalancer.py
quantum/tests/unit/test_loadbalancer_plugin.py
quantum/tests/unit/test_routerserviceinsertion.py