blob: d4050bb951960f17525792927e1e1294ec014b42 [file] [log] [blame]
Mark McClainb05c8762013-07-06 23:29:39 -04001# PLUMgrid Neutron Plugin
2# Edgar Magana emagana@plumgrid.com
3# ------------------------------------
4
5# Save trace settings
6MY_XTRACE=$(set +o | grep xtrace)
7set +o xtrace
8
9#source $TOP_DIR/lib/neutron_plugins/ovs_base
10
11function neutron_plugin_create_nova_conf() {
Aaron Rosen4540d002013-10-24 13:59:33 -070012 :
Mark McClainb05c8762013-07-06 23:29:39 -040013}
14
15function neutron_plugin_setup_interface_driver() {
16 :
17}
18
19function neutron_plugin_configure_common() {
20 Q_PLUGIN_CONF_PATH=etc/neutron/plugins/plumgrid
21 Q_PLUGIN_CONF_FILENAME=plumgrid.ini
22 Q_DB_NAME="plumgrid_neutron"
Edgar Maganaf34424e2013-07-29 16:47:13 -070023 Q_PLUGIN_CLASS="neutron.plugins.plumgrid.plumgrid_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2"
Edgar Maganaaeb85c12013-07-05 11:03:57 -070024 PLUMGRID_DIRECTOR_IP=${PLUMGRID_DIRECTOR_IP:-localhost}
25 PLUMGRID_DIRECTOR_PORT=${PLUMGRID_DIRECTOR_PORT:-7766}
Mark McClainb05c8762013-07-06 23:29:39 -040026}
27
28function neutron_plugin_configure_service() {
Edgar Maganaaeb85c12013-07-05 11:03:57 -070029 iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector director_server $PLUMGRID_DIRECTOR_IP
30 iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector director_server_port $PLUMGRID_DIRECTOR_PORT
Mark McClainb05c8762013-07-06 23:29:39 -040031}
32
33function neutron_plugin_configure_debug_command() {
34 :
35}
36
Edgar Maganaf34424e2013-07-29 16:47:13 -070037function is_neutron_ovs_base_plugin() {
38 # False
39 return 1
40}
41
42function has_neutron_plugin_security_group() {
43 # False
44 return 1
45}
46
Mark McClainb05c8762013-07-06 23:29:39 -040047function neutron_plugin_check_adv_test_requirements() {
48 is_service_enabled q-agt && is_service_enabled q-dhcp && return 0
49}
50# Restore xtrace
51$MY_XTRACE