blob: bccd3010115e7b4f37adf65cb0f75f7b982233a8 [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
Mark McClainb05c8762013-07-06 23:29:39 -04009function neutron_plugin_create_nova_conf() {
Aaron Rosen4540d002013-10-24 13:59:33 -070010 :
Mark McClainb05c8762013-07-06 23:29:39 -040011}
12
13function neutron_plugin_setup_interface_driver() {
14 :
15}
16
17function neutron_plugin_configure_common() {
18 Q_PLUGIN_CONF_PATH=etc/neutron/plugins/plumgrid
19 Q_PLUGIN_CONF_FILENAME=plumgrid.ini
20 Q_DB_NAME="plumgrid_neutron"
Edgar Maganaf34424e2013-07-29 16:47:13 -070021 Q_PLUGIN_CLASS="neutron.plugins.plumgrid.plumgrid_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2"
Edgar Maganaaeb85c12013-07-05 11:03:57 -070022 PLUMGRID_DIRECTOR_IP=${PLUMGRID_DIRECTOR_IP:-localhost}
23 PLUMGRID_DIRECTOR_PORT=${PLUMGRID_DIRECTOR_PORT:-7766}
Edgar Magana500a32f2013-12-02 14:27:31 -080024 PLUMGRID_ADMIN=${PLUMGRID_ADMIN:-username}
25 PLUMGRID_PASSWORD=${PLUMGRID_PASSWORD:-password}
26 PLUMGRID_TIMEOUT=${PLUMGRID_TIMEOUT:-70}
Mark McClainb05c8762013-07-06 23:29:39 -040027}
28
29function neutron_plugin_configure_service() {
Edgar Maganaaeb85c12013-07-05 11:03:57 -070030 iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector director_server $PLUMGRID_DIRECTOR_IP
31 iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector director_server_port $PLUMGRID_DIRECTOR_PORT
Edgar Magana500a32f2013-12-02 14:27:31 -080032 iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector username $PLUMGRID_ADMIN
33 iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector password $PLUMGRID_PASSWORD
34 iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector servertimeout $PLUMGRID_TIMEOUT
Mark McClainb05c8762013-07-06 23:29:39 -040035}
36
37function neutron_plugin_configure_debug_command() {
38 :
39}
40
Edgar Maganaf34424e2013-07-29 16:47:13 -070041function is_neutron_ovs_base_plugin() {
42 # False
43 return 1
44}
45
46function has_neutron_plugin_security_group() {
47 # False
48 return 1
49}
50
Mark McClainb05c8762013-07-06 23:29:39 -040051function neutron_plugin_check_adv_test_requirements() {
52 is_service_enabled q-agt && is_service_enabled q-dhcp && return 0
53}
54# Restore xtrace
55$MY_XTRACE