Browse code

Specify agent mode and service cluster uuid for nicira plugin

Supports blueprint nsx-integrated-services

Change-Id: Ib02716fe447f1d7f47f2f49d16f0d2ad7afe741f

armando-migliaccio authored on 2013/09/26 09:29:58
Showing 1 changed files
... ...
@@ -119,6 +119,16 @@ function neutron_plugin_configure_service() {
119 119
     if [[ "$NVP_REDIRECTS" != "" ]]; then
120 120
         iniset /$Q_PLUGIN_CONF_FILE DEFAULT redirects $NVP_REDIRECTS
121 121
     fi
122
+    if [[ "$AGENT_MODE" != "" ]]; then
123
+        iniset /$Q_PLUGIN_CONF_FILE nvp agent_mode $AGENT_MODE
124
+        if [[ "$AGENT_MODE" == "agentless" ]]; then
125
+            if [[ "$DEFAULT_SERVICE_CLUSTER_UUID" != "" ]]; then
126
+                iniset /$Q_PLUGIN_CONF_FILE DEFAULT default_service_cluster_uuid $DEFAULT_SERVICE_CLUSTER_UUID
127
+            else
128
+                die $LINENO "Agentless mode requires a service cluster."
129
+            fi
130
+        fi
131
+    fi
122 132
 }
123 133
 
124 134
 function neutron_plugin_setup_interface_driver() {