]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
port_security migration does not migrate data
authorAaron Rosen <arosen@nicira.com>
Sun, 10 Mar 2013 21:09:28 +0000 (14:09 -0700)
committerAaron Rosen <arosen@nicira.com>
Tue, 12 Mar 2013 23:44:31 +0000 (16:44 -0700)
commit2bc6c63a1a6ab9827480a6538e35e6f2b1b93259
tree5ac269c567d155fdc7fe3ff6c13280d22f8a35f2
parentd20a1f3749d762ef4459127da9e377f5bbe0bbe7
port_security migration does not migrate data

The port security migration previously created the correct table structure but
it did not migrate the old data into this table. This patch adds code that
copies the id fields from networks and ports into portsecuritybindings
and networksecuritybindings tables.

One thing to note is that in grizzly when a port is created on a network that
has port_security_enabled=True, the port will also be created with
port_security_enabled=True. But since ports in NVP were not previously
created with the mac/ip security address pairs we have to set existing ports
and networks port_security_enabled value to be False. One could easily
write a script to set these values to True after applying this migration.

Fixes bug 1153366

Change-Id: I8a1ccab3e432c23c475816111d388df7f81b8e4a
quantum/db/migration/alembic_migrations/versions/1149d7de0cfa_port_security.py