-# vim: tabstop=4 shiftwidth=4 softtabstop=4
+# vim: tabstop=4 shiftwidth=4 softtabstop=4l359
#
# Copyright 2012 New Dream Network, LLC (DreamHost)
#
PLUGINS = {
'bigswitch': 'neutron.plugins.bigswitch.plugin.NeutronRestProxyV2',
+ 'brocade': 'neutron.plugins.brocade.NeutronPlugin.BrocadePluginV2',
'cisco': 'neutron.plugins.cisco.network_plugin.PluginV2',
'lbr': 'neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2',
'meta': 'neutron.plugins.metaplugin.meta_neutron_plugin.MetaPluginV2',
PLUGINS['nec'],
PLUGINS['ovs'],
PLUGINS['ryu'],
+ PLUGINS['brocade'],
PLUGINS['plumgrid'],
]
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_base():
)
+def upgrade_brocade():
+ op.create_table(
+ 'brocadenetworks',
+ sa.Column('id', sa.Integer(), autoincrement=False, nullable=False),
+ sa.Column('vlan', sa.String(10)),
+ sa.PrimaryKeyConstraint('id')
+ )
+
+ op.create_table(
+ 'brocadeports',
+ sa.Column('port_id', sa.String(36), nullable=False),
+ sa.Column('network_id', sa.String(36)),
+ sa.Column('admin_state_up', sa.Boolean()),
+ sa.Column('physical_interface', sa.String(36)),
+ sa.Column('vlan_id', sa.String(10)),
+ sa.Column('tenant_id', sa.String(36)),
+ sa.PrimaryKeyConstraint('port_id')
+ )
+
+
def upgrade_cisco():
op.create_table(
'cisco_vlan_ids',
downgrade_nec()
elif PLUGINS['ryu'] in active_plugins:
downgrade_ryu()
+ elif PLUGINS['brocade'] in active_plugins:
+ # Brocade plugin imports linux bridge models too
+ downgrade_brocade()
+ downgrade_linuxbridge()
if set(active_plugins) & set(FOLSOM_QUOTA):
common_ext_ops.downgrade_quota(options)
op.drop_table('ofp_server')
+def downgrade_brocade():
+ op.drop_table('brocadenetworks')
+ op.drop_table('brocadeports')
+
+
def downgrade_cisco():
op.drop_tables(
'nextport_bindings',