Browse code

Adds entries for missing parameters in PLUMgrid plugin

Three configuration parameters were missing for the PLUMgrid plugin.
In this patch all those three have been properly added.

Change-Id: If070aa5eb35678d0984470ebcd43fd99e08bcc8a
Closes-Bug: #1255808

Edgar Magana authored on 2013/12/03 07:27:31
Showing 1 changed files
... ...
@@ -6,8 +6,6 @@
6 6
 MY_XTRACE=$(set +o | grep xtrace)
7 7
 set +o xtrace
8 8
 
9
-#source $TOP_DIR/lib/neutron_plugins/ovs_base
10
-
11 9
 function neutron_plugin_create_nova_conf() {
12 10
     :
13 11
 }
... ...
@@ -23,11 +21,17 @@ function neutron_plugin_configure_common() {
23 23
     Q_PLUGIN_CLASS="neutron.plugins.plumgrid.plumgrid_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2"
24 24
     PLUMGRID_DIRECTOR_IP=${PLUMGRID_DIRECTOR_IP:-localhost}
25 25
     PLUMGRID_DIRECTOR_PORT=${PLUMGRID_DIRECTOR_PORT:-7766}
26
+    PLUMGRID_ADMIN=${PLUMGRID_ADMIN:-username}
27
+    PLUMGRID_PASSWORD=${PLUMGRID_PASSWORD:-password}
28
+    PLUMGRID_TIMEOUT=${PLUMGRID_TIMEOUT:-70}
26 29
 }
27 30
 
28 31
 function neutron_plugin_configure_service() {
29 32
     iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector director_server $PLUMGRID_DIRECTOR_IP
30 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
31 37
 }
32 38
 
33 39
 function neutron_plugin_configure_debug_command() {