| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,58 +0,0 @@ |
| 1 |
-#!/bin/bash |
|
| 2 |
-# |
|
| 3 |
-# PLUMgrid Neutron Plugin |
|
| 4 |
-# Edgar Magana emagana@plumgrid.com |
|
| 5 |
-# ------------------------------------ |
|
| 6 |
- |
|
| 7 |
-# Save trace settings |
|
| 8 |
-PG_XTRACE=$(set +o | grep xtrace) |
|
| 9 |
-set +o xtrace |
|
| 10 |
- |
|
| 11 |
-function neutron_plugin_create_nova_conf {
|
|
| 12 |
- : |
|
| 13 |
-} |
|
| 14 |
- |
|
| 15 |
-function neutron_plugin_setup_interface_driver {
|
|
| 16 |
- : |
|
| 17 |
-} |
|
| 18 |
- |
|
| 19 |
-function neutron_plugin_configure_common {
|
|
| 20 |
- Q_PLUGIN_CONF_PATH=etc/neutron/plugins/plumgrid |
|
| 21 |
- Q_PLUGIN_CONF_FILENAME=plumgrid.ini |
|
| 22 |
- Q_PLUGIN_CLASS="neutron.plugins.plumgrid.plumgrid_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2" |
|
| 23 |
- PLUMGRID_DIRECTOR_IP=${PLUMGRID_DIRECTOR_IP:-localhost}
|
|
| 24 |
- PLUMGRID_DIRECTOR_PORT=${PLUMGRID_DIRECTOR_PORT:-7766}
|
|
| 25 |
- PLUMGRID_ADMIN=${PLUMGRID_ADMIN:-username}
|
|
| 26 |
- PLUMGRID_PASSWORD=${PLUMGRID_PASSWORD:-password}
|
|
| 27 |
- PLUMGRID_TIMEOUT=${PLUMGRID_TIMEOUT:-70}
|
|
| 28 |
- PLUMGRID_DRIVER=${PLUMGRID_DRIVER:-neutron.plugins.plumgrid.drivers.fake_plumlib.Plumlib}
|
|
| 29 |
-} |
|
| 30 |
- |
|
| 31 |
-function neutron_plugin_configure_service {
|
|
| 32 |
- iniset /$Q_PLUGIN_CONF_FILE plumgriddirector director_server $PLUMGRID_DIRECTOR_IP |
|
| 33 |
- iniset /$Q_PLUGIN_CONF_FILE plumgriddirector director_server_port $PLUMGRID_DIRECTOR_PORT |
|
| 34 |
- iniset /$Q_PLUGIN_CONF_FILE plumgriddirector username $PLUMGRID_ADMIN |
|
| 35 |
- iniset /$Q_PLUGIN_CONF_FILE plumgriddirector password $PLUMGRID_PASSWORD |
|
| 36 |
- iniset /$Q_PLUGIN_CONF_FILE plumgriddirector servertimeout $PLUMGRID_TIMEOUT |
|
| 37 |
- iniset /$Q_PLUGIN_CONF_FILE plumgriddirector driver $PLUMGRID_DRIVER |
|
| 38 |
-} |
|
| 39 |
- |
|
| 40 |
-function neutron_plugin_configure_debug_command {
|
|
| 41 |
- : |
|
| 42 |
-} |
|
| 43 |
- |
|
| 44 |
-function is_neutron_ovs_base_plugin {
|
|
| 45 |
- # False |
|
| 46 |
- return 1 |
|
| 47 |
-} |
|
| 48 |
- |
|
| 49 |
-function has_neutron_plugin_security_group {
|
|
| 50 |
- # return 0 means enabled |
|
| 51 |
- return 0 |
|
| 52 |
-} |
|
| 53 |
- |
|
| 54 |
-function neutron_plugin_check_adv_test_requirements {
|
|
| 55 |
- is_service_enabled q-agt && is_service_enabled q-dhcp && return 0 |
|
| 56 |
-} |
|
| 57 |
-# Restore xtrace |
|
| 58 |
-$PG_XTRACE |