]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix segment allocation tables in Cisco N1kv plugin
authorAbhishek Raut <abhraut@cisco.com>
Thu, 6 Mar 2014 03:02:40 +0000 (19:02 -0800)
committerAbhishek Raut <abhraut@cisco.com>
Sat, 22 Mar 2014 03:39:04 +0000 (20:39 -0700)
commitf83b2ef4fc042d8559b1f75dbe949460f2843c7e
tree5814e38a085ea591c6d3baa1fa99fbe7f0a73e8e
parent4599e80bd2d6b6ea17b78ba858d618e95ca8be22
Fix segment allocation tables in Cisco N1kv plugin

The segment allocation table is emptied on deleting any network profile.
This change allows the use of segment range from the network profile table.
By using the network profile UUID as a foreign key in the segment allocations table,
tables are cleaned up only for the segments associated with
the deleted network profile via CASCADE, leaving no inconsistencies.

Change-Id: I507041fac3768a7b688ddcf28c4d97c618bfe3f9
Closes-Bug: #1288407
neutron/db/migration/alembic_migrations/versions/5ac1c354a051_n1kv_segment_alloc.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/plugins/cisco/common/cisco_exceptions.py
neutron/plugins/cisco/db/n1kv_db_v2.py
neutron/plugins/cisco/db/n1kv_models_v2.py
neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py
neutron/tests/unit/cisco/n1kv/test_n1kv_db.py
neutron/tests/unit/cisco/n1kv/test_n1kv_plugin.py