Browse code

Parameterized configuration variables for PLUMgrid plugin

Fixes bug 1171028

Change-Id: Ie60ef8903001913996e265917c449bdce1e5aae9

Edgar Magana authored on 2013/04/18 07:11:04
Showing 1 changed files
... ...
@@ -25,8 +25,10 @@ function quantum_plugin_configure_common() {
25 25
 }
26 26
 
27 27
 function quantum_plugin_configure_service() {
28
-    iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server localhost
29
-    iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server_port 7766
28
+    PLUMGRID_NOS_IP=${PLUMGRID_NOS_IP:-localhost}
29
+    PLUMGRID_NOS_PORT=${PLUMGRID_NOS_PORT:-7766}
30
+    iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server $PLUMGRID_NOS_IP
31
+    iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server_port $PLUMGRID_NOS_PORT
30 32
 }
31 33
 
32 34
 function quantum_plugin_configure_debug_command() {