def downgrade(active_plugin=None, options=None): if active_plugin == PLUGINS['lbr']: downgrade_linuxbridge() elif active_plugin == PLUGINS['ovs']: downgrade_ovs() elif active_plugin == PLUGINS['cisco']: # Cisco plugin imports OVS models too downgrade_ovs() downgrade_cisco() elif active_plugin == PLUGINS['meta']: downgrade_meta() elif active_plugin == PLUGINS['nec']: downgrade_nec() elif active_plugin == PLUGINS['ryu']: downgrade_ryu() if active_plugin in FOLSOM_QUOTA: common_ext_ops.downgrade_quota(options) if active_plugin in L3_CAPABLE: common_ext_ops.downgrade_l3() downgrade_base()
def downgrade(active_plugin=None, options=None): if active_plugin == PLUGINS['lbr']: downgrade_linuxbridge() elif active_plugin == PLUGINS['ovs']: downgrade_ovs() elif active_plugin == PLUGINS['cisco']: # Cisco plugin imports OVS models too downgrade_ovs() downgrade_cisco() elif active_plugin == PLUGINS['meta']: downgrade_meta() elif active_plugin == PLUGINS['nec']: downgrade_nec() elif active_plugin == PLUGINS['ryu']: downgrade_ryu() if active_plugin in FOLSOM_QUOTA: common_ext_ops.downgrade_quota(options) if active_plugin in L3_CAPABLE: common_ext_ops.downgrade_l3() downgrade_base()
def downgrade(active_plugin=None, options=None): if not migration.should_run(active_plugin, migration_for_plugins): return common_ext_ops.downgrade_l3()
def downgrade(active_plugin=None, options=None): if not migration.should_run(active_plugin, migration_for_plugins): return common_ext_ops.downgrade_l3()