3 # Remember to also add any new plugin name into neutron-common.templates
5 # Please remember this function is also duplicated in debian/neutron-common.config.in
6 ### Guess the plugin name depending on the class of the plugin in /etc/neutron/neutron.conf ###
7 neutron_core_plugin_to_plugin_name () {
9 "neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2")
10 NEUTRON_PLUGIN_NAME=OpenVSwitch
12 "neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2")
13 NEUTRON_PLUGIN_NAME=LinuxBridge
15 "neutron.plugins.ml2.plugin.Ml2Plugin")
16 NEUTRON_PLUGIN_NAME=ml2
18 "neutron.plugins.ryu.ryu_neutron_plugin.RyuNeutronPluginV2")
19 NEUTRON_PLUGIN_NAME=RYU
21 "neutron.plugins.plumgrid.plumgrid_nos_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2")
22 NEUTRON_PLUGIN_NAME=PLUMgrid
24 "neutron.plugins.brocade.NeutronPlugin.BrocadePluginV2")
25 NEUTRON_PLUGIN_NAME=Brocade
27 "neutron.plugins.hyperv.hyperv_neutron_plugin.HyperVNeutronPlugin")
28 NEUTRON_PLUGIN_NAME=Hyper-V
30 "neutron.plugins.bigswitch.plugin.NeutronRestProxyV2")
31 NEUTRON_PLUGIN_NAME=BigSwitch
33 "neutron.plugins.cisco.network_plugin.PluginV2")
34 NEUTRON_PLUGIN_NAME=Cisco
36 "neutron.plugins.nicira.NeutronPlugin.NvpPluginV2")
37 NEUTRON_PLUGIN_NAME=neutron.plugins.nicira.NeutronPlugin.NvpPluginV2
39 "neutron.plugins.midonet.plugin.MidonetPluginV2")
40 NEUTRON_PLUGIN_NAME=Midonet
42 "neutron.plugins.nec.nec_plugin.NECPluginV2")
43 NEUTRON_PLUGIN_NAME=Nec
45 "neutron.plugins.metaplugin.meta_neutron_plugin.MetaPluginV2")
46 NEUTRON_PLUGIN_NAME=MetaPlugin
48 "neutron.plugins.mlnx.mlnx_plugin.MellanoxEswitchPlugin")
49 NEUTRON_PLUGIN_NAME=Mellanox
52 NEUTRON_PLUGIN_NAME="other"
57 ### Guess the path of the plugin .ini file depending on the plugin name ###
58 neutron_plugin_ini_path () {
59 PLUG_INI_BASE=/etc/neutron/plugins/
62 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}ml2/openvswitch_agent.ini
65 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}linuxbridge/linuxbridge_conf.ini
68 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}ml2/ml2_conf.ini
71 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}ryu/ryu.ini
74 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}plumgrid/plumgrid.ini
77 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}brocade/brocade.ini
80 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}hyperv/hyperv_neutron_plugin.ini
83 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}bigswitch/restproxy.ini
86 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}cisco/cisco_plugins.ini
89 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}nicira/nvp.ini
92 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}midonet/midonet.ini
95 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}nec/nec.ini
98 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}metaplugin/metaplugin.ini
101 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}mlnx/mlnx_conf.ini
104 NEUTRON_PLUGIN_CONFIG=""
109 ### Translates the core_plugin directive value from neutron.conf into the plugin name ###
110 neutron_core_plugin_to_plugin_name () {
112 "neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2")
113 NEUTRON_PLUGIN_NAME=OpenVSwitch
115 "neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2")
116 NEUTRON_PLUGIN_NAME=LinuxBridge
118 "neutron.plugins.ml2.plugin.Ml2Plugin")
119 NEUTRON_PLUGIN_NAME=ml2
121 "neutron.plugins.ryu.ryu_neutron_plugin.RyuNeutronPluginV2")
122 NEUTRON_PLUGIN_NAME=RYU
124 "neutron.plugins.plumgrid.plumgrid_nos_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2")
125 NEUTRON_PLUGIN_NAME=PLUMgrid
127 "neutron.plugins.brocade.NeutronPlugin.BrocadePluginV2")
128 NEUTRON_PLUGIN_NAME=Brocade
130 "neutron.plugins.hyperv.hyperv_neutron_plugin.HyperVNeutronPlugin")
131 NEUTRON_PLUGIN_NAME=Hyper-V
133 "neutron.plugins.bigswitch.plugin.NeutronRestProxyV2")
134 NEUTRON_PLUGIN_NAME=BigSwitch
136 "neutron.plugins.cisco.network_plugin.PluginV2")
137 NEUTRON_PLUGIN_NAME=Cisco
139 "neutron.plugins.nicira.NeutronPlugin.NvpPluginV2")
140 NEUTRON_PLUGIN_NAME=neutron.plugins.nicira.NeutronPlugin.NvpPluginV2
142 "neutron.plugins.midonet.plugin.MidonetPluginV2")
143 NEUTRON_PLUGIN_NAME=Midonet
145 "neutron.plugins.nec.nec_plugin.NECPluginV2")
146 NEUTRON_PLUGIN_NAME=Nec
148 "neutron.plugins.metaplugin.meta_neutron_plugin.MetaPluginV2")
149 NEUTRON_PLUGIN_NAME=MetaPlugin
151 "neutron.plugins.mlnx.mlnx_plugin.MellanoxEswitchPlugin")
152 NEUTRON_PLUGIN_NAME=Mellanox
155 NEUTRON_PLUGIN_NAME="other"