]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Decompose create_port and save_subnet
authorPavel Bondar <pbondar@infoblox.com>
Thu, 18 Jun 2015 11:52:24 +0000 (14:52 +0300)
committerPavel Bondar <pbondar@infoblox.com>
Mon, 22 Jun 2015 08:06:03 +0000 (08:06 +0000)
commitc0ef7a8f4546cd3c081a61c742dd9ed70ec2c147
tree393980cf0a80ac0bdcd27d097ccd74381b39abae
parent46204877269a2b56e2187a955bbf49eb31833f92
Decompose create_port and save_subnet

This commit is a preparation step for enabling pluggable ipam.
Some actions in create_port and save_subnet are specific for
non pluggable ipam implementation.

- create_port
Moved allocation ips for port and storing results into separate method
_allocate_ips_for_port_and_store.
Moved to ipam_non_pluggable_backend, since pluggable implementation will
be different due to rollback on failure logic included.

- save_subnet
Moved saving allocation pools into new method _save_allocation_pools.
Moved to ipam_non_pluggable_backend, since pluggable ipam implementation
does not need to save IPAvailabilityRange (availability ranges are
maintained by ipam driver for pluggable case)

Partially-Implements: blueprint neutron-ipam

Change-Id: I4a3e5d7f3aa54630279d9589225a509c96ed2186
neutron/db/db_base_plugin_v2.py
neutron/db/ipam_non_pluggable_backend.py