From ec0ff2acf8d0f58c3e2750cd94a1eb9949bcdad8 Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Wed, 25 Sep 2013 17:29:58 -0700 Subject: [PATCH] Specify agent mode and service cluster uuid for nicira plugin Supports blueprint nsx-integrated-services Change-Id: Ib02716fe447f1d7f47f2f49d16f0d2ad7afe741f --- lib/neutron_plugins/nicira | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/neutron_plugins/nicira b/lib/neutron_plugins/nicira index e9deb64e11..ca89d57fe7 100644 --- a/lib/neutron_plugins/nicira +++ b/lib/neutron_plugins/nicira @@ -119,6 +119,16 @@ function neutron_plugin_configure_service() { if [[ "$NVP_REDIRECTS" != "" ]]; then iniset /$Q_PLUGIN_CONF_FILE DEFAULT redirects $NVP_REDIRECTS fi + if [[ "$AGENT_MODE" != "" ]]; then + iniset /$Q_PLUGIN_CONF_FILE nvp agent_mode $AGENT_MODE + if [[ "$AGENT_MODE" == "agentless" ]]; then + if [[ "$DEFAULT_SERVICE_CLUSTER_UUID" != "" ]]; then + iniset /$Q_PLUGIN_CONF_FILE DEFAULT default_service_cluster_uuid $DEFAULT_SERVICE_CLUSTER_UUID + else + die $LINENO "Agentless mode requires a service cluster." + fi + fi + fi } function neutron_plugin_setup_interface_driver() {