¡@

Home 

OpenStack Study: 38fc1f6789f8_cisco_n1kv_overlay.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.alter_column('cisco_network_profiles', 'segment_type',

                    existing_type=sa.Enum('vlan', 'overlay', 'trunk',

                                          'multi-segment'),

                    existing_nullable=False)

**** CubicPower OpenStack Study ****

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

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.alter_column('cisco_network_profiles', 'segment_type',

                    existing_type=sa.Enum('vlan', 'vxlan', 'trunk',

                                          'multi-segment'),

                    existing_nullable=False)