Пример #1
0
def upgrade(active_plugins=None, options=None):
    # general model
    upgrade_base()

    if migration.should_run(active_plugins, L3_CAPABLE):
        common_ext_ops.upgrade_l3()

    if migration.should_run(active_plugins, FOLSOM_QUOTA):
        common_ext_ops.upgrade_quota(options)

    if PLUGINS['lbr'] in active_plugins:
        upgrade_linuxbridge()
    elif PLUGINS['ovs'] in active_plugins:
        upgrade_ovs()
    elif PLUGINS['cisco'] in active_plugins:
        upgrade_cisco()
        # Cisco plugin imports OVS models too
        upgrade_ovs()
    elif PLUGINS['meta'] in active_plugins:
        upgrade_meta()
    elif PLUGINS['nec'] in active_plugins:
        upgrade_nec()
    elif PLUGINS['ryu'] in active_plugins:
        upgrade_ryu()
    elif PLUGINS['brocade'] in active_plugins:
        upgrade_brocade()
        # Brocade plugin imports linux bridge models too
        upgrade_linuxbridge()
Пример #2
0
def upgrade(active_plugins=None, options=None):
    # general model
    upgrade_base()

    if migration.should_run(active_plugins, L3_CAPABLE):
        common_ext_ops.upgrade_l3()

    if migration.should_run(active_plugins, FOLSOM_QUOTA):
        common_ext_ops.upgrade_quota()

    if PLUGINS['lbr'] in active_plugins:
        upgrade_linuxbridge()
    elif PLUGINS['ovs'] in active_plugins:
        upgrade_ovs()
    elif PLUGINS['cisco'] in active_plugins:
        upgrade_cisco()
        # Cisco plugin imports OVS models too
        upgrade_ovs()
    elif PLUGINS['meta'] in active_plugins:
        upgrade_meta()
    elif PLUGINS['nec'] in active_plugins:
        upgrade_nec()
    elif PLUGINS['ryu'] in active_plugins:
        upgrade_ryu()
    elif PLUGINS['brocade'] in active_plugins:
        upgrade_brocade()
        # Brocade plugin imports linux bridge models too
        upgrade_linuxbridge()
def upgrade(active_plugin=None, options=None):
    # general model
    upgrade_base()

    if active_plugin in L3_CAPABLE:
        common_ext_ops.upgrade_l3()

    if active_plugin in FOLSOM_QUOTA:
        common_ext_ops.upgrade_quota(options)

    if active_plugin == PLUGINS['lbr'] or active_plugin == PLUGINS['niblick']:
        upgrade_linuxbridge()
    elif active_plugin == PLUGINS['ovs']:
        upgrade_ovs()
    elif active_plugin == PLUGINS['cisco']:
        upgrade_cisco()
        # Cisco plugin imports OVS models too
        upgrade_ovs()
    elif active_plugin == PLUGINS['meta']:
        upgrade_meta()
    elif active_plugin == PLUGINS['nec']:
        upgrade_nec()
    elif active_plugin == PLUGINS['ryu']:
        upgrade_ryu()
Пример #4
0
def upgrade(active_plugin=None, options=None):
    # general model
    upgrade_base()

    if active_plugin in L3_CAPABLE:
        common_ext_ops.upgrade_l3()

    if active_plugin in FOLSOM_QUOTA:
        common_ext_ops.upgrade_quota(options)

    if active_plugin == PLUGINS['lbr']:
        upgrade_linuxbridge()
    elif active_plugin == PLUGINS['ovs']:
        upgrade_ovs()
    elif active_plugin == PLUGINS['cisco']:
        upgrade_cisco()
        # Cisco plugin imports OVS models too
        upgrade_ovs()
    elif active_plugin == PLUGINS['meta']:
        upgrade_meta()
    elif active_plugin == PLUGINS['nec']:
        upgrade_nec()
    elif active_plugin == PLUGINS['ryu']:
        upgrade_ryu()
Пример #5
0
def upgrade(active_plugins=None, options=None):
    # general model
    upgrade_base()

    if set(active_plugins) & set(L3_CAPABLE):
        common_ext_ops.upgrade_l3()

    if set(active_plugins) & set(FOLSOM_QUOTA):
        common_ext_ops.upgrade_quota(options)

    if PLUGINS['lbr'] in active_plugins:
        upgrade_linuxbridge()
    elif PLUGINS['ovs'] in active_plugins:
        upgrade_ovs()
    elif PLUGINS['cisco'] in active_plugins:
        upgrade_cisco()
        # Cisco plugin imports OVS models too
        upgrade_ovs()
    elif PLUGINS['meta'] in active_plugins:
        upgrade_meta()
    elif PLUGINS['nec'] in active_plugins:
        upgrade_nec()
    elif PLUGINS['ryu'] in active_plugins:
        upgrade_ryu()