]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NEC plugin: delete old OFC ID mapping tables
authorAkihiro Motoki <motoki@da.jp.nec.com>
Sat, 1 Mar 2014 22:07:34 +0000 (07:07 +0900)
committerGerrit Code Review <review@openstack.org>
Thu, 6 Mar 2014 08:29:52 +0000 (08:29 +0000)
commit142c55e82a4d36af887439a94054617a5a0ede9c
tree8117dcb53ecffc3be18d184687395685a22cdca3
parentcdec8e52a22b211ab9fa8a2096f7890bb1ef8654
NEC plugin: delete old OFC ID mapping tables

Before Grizzly release, data format of OFC ID mapping tables was changed
and there are two types of ID mapping tables for old and new format.
This commit migrate data from old mapping tables into new tables,
drop old mapping tables and remove the logic handling the old tables.

In the db migration scripts, built-in compiler of sqlalchemy does not
support "INSERT INTO table (col1, col2,...) (SELECT ....)" format,
so a custom sqlalchemy.expression compiling method is defined.

Closes-Bug: #1286733
Change-Id: I7dae6b728ab9e10f1dc5d63418a69ee4c26354ea
neutron/db/migration/alembic_migrations/versions/117643811bca_nec_delete_ofc_mapping.py [new file with mode: 0644]
neutron/plugins/nec/db/api.py
neutron/plugins/nec/db/models.py
neutron/plugins/nec/drivers/pfc.py
neutron/plugins/nec/drivers/trema.py
neutron/plugins/nec/ofc_driver_base.py
neutron/plugins/nec/ofc_manager.py
neutron/tests/unit/nec/test_db.py
neutron/tests/unit/nec/test_ofc_manager.py
neutron/tests/unit/nec/test_pfc_driver.py
neutron/tests/unit/nec/test_trema_driver.py