]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove import extension dep from db migration
authorMark McClain <mmcclain@yahoo-inc.com>
Wed, 26 Feb 2014 18:24:55 +0000 (13:24 -0500)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:34 +0000 (15:20 +0800)
Change-Id: Ic8907a9960807b30d8b89df0ee29e42b26a7675a
Closes-bug:1285294

neutron/db/migration/alembic_migrations/versions/27cc183af192_ml2_vnic_type.py

index 00cf029ada7e90f4f01737c0b5200019cb1c6d03..db38e65a23b920c214704af7aaca39f17fb40d3a 100644 (file)
@@ -35,7 +35,6 @@ from alembic import op
 import sqlalchemy as sa
 
 from neutron.db import migration
-from neutron.extensions import portbindings
 
 
 def upgrade(active_plugins=None, options=None):
@@ -45,7 +44,7 @@ def upgrade(active_plugins=None, options=None):
     op.add_column('ml2_port_bindings',
                   sa.Column('vnic_type', sa.String(length=64),
                             nullable=False,
-                            server_default=portbindings.VNIC_NORMAL))
+                            server_default='normal'))
 
 
 def downgrade(active_plugins=None, options=None):