¡@

Home 

OpenStack Study: 32b517556ec9_remove_tunnelip_mode.py

OpenStack Index

**** CubicPower OpenStack Study ****

def upgrade(active_plugins=None, options=None):

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.drop_table('ovs_tunnel_ips')

**** CubicPower OpenStack Study ****

def downgrade(active_plugins=None, options=None):

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.create_table(

        'ovs_tunnel_ips',

        sa.Column('ip_address', sa.String(length=255), nullable=False),

        sa.PrimaryKeyConstraint('ip_address')

    )