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
51 "vmware_nsx.plugin.NsxVPlugin")
52 NEUTRON_PLUGIN_NAME=VMware
55 NEUTRON_PLUGIN_NAME="other"
60 ### Guess the path of the plugin .ini file depending on the plugin name ###
61 neutron_plugin_ini_path () {
62 PLUG_INI_BASE=/etc/neutron/plugins/
65 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}ml2/openvswitch_agent.ini
68 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}linuxbridge/linuxbridge_conf.ini
71 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}ml2/ml2_conf.ini
74 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}ryu/ryu.ini
77 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}plumgrid/plumgrid.ini
80 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}brocade/brocade.ini
83 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}hyperv/hyperv_neutron_plugin.ini
86 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}bigswitch/restproxy.ini
89 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}cisco/cisco_plugins.ini
92 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}nicira/nvp.ini
95 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}midonet/midonet.ini
98 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}nec/nec.ini
101 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}metaplugin/metaplugin.ini
104 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}mlnx/mlnx_conf.ini
107 NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}vmware/nsx.ini
110 NEUTRON_PLUGIN_CONFIG=""
115 ### Translates the core_plugin directive value from neutron.conf into the plugin name ###
116 neutron_core_plugin_to_plugin_name () {
118 "neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2")
119 NEUTRON_PLUGIN_NAME=OpenVSwitch
121 "neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2")
122 NEUTRON_PLUGIN_NAME=LinuxBridge
124 "neutron.plugins.ml2.plugin.Ml2Plugin")
125 NEUTRON_PLUGIN_NAME=ml2
127 "neutron.plugins.ryu.ryu_neutron_plugin.RyuNeutronPluginV2")
128 NEUTRON_PLUGIN_NAME=RYU
130 "neutron.plugins.plumgrid.plumgrid_nos_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2")
131 NEUTRON_PLUGIN_NAME=PLUMgrid
133 "neutron.plugins.brocade.NeutronPlugin.BrocadePluginV2")
134 NEUTRON_PLUGIN_NAME=Brocade
136 "neutron.plugins.hyperv.hyperv_neutron_plugin.HyperVNeutronPlugin")
137 NEUTRON_PLUGIN_NAME=Hyper-V
139 "neutron.plugins.bigswitch.plugin.NeutronRestProxyV2")
140 NEUTRON_PLUGIN_NAME=BigSwitch
142 "neutron.plugins.cisco.network_plugin.PluginV2")
143 NEUTRON_PLUGIN_NAME=Cisco
145 "neutron.plugins.nicira.NeutronPlugin.NvpPluginV2")
146 NEUTRON_PLUGIN_NAME=neutron.plugins.nicira.NeutronPlugin.NvpPluginV2
148 "neutron.plugins.midonet.plugin.MidonetPluginV2")
149 NEUTRON_PLUGIN_NAME=Midonet
151 "neutron.plugins.nec.nec_plugin.NECPluginV2")
152 NEUTRON_PLUGIN_NAME=Nec
154 "neutron.plugins.metaplugin.meta_neutron_plugin.MetaPluginV2")
155 NEUTRON_PLUGIN_NAME=MetaPlugin
157 "neutron.plugins.mlnx.mlnx_plugin.MellanoxEswitchPlugin")
158 NEUTRON_PLUGIN_NAME=Mellanox
160 "vmware_nsx.plugin.NsxVPlugin")
161 NEUTRON_PLUGIN_NAME=VMware
164 NEUTRON_PLUGIN_NAME="other"