Specify agent mode and service cluster uuid for nicira plugin

Supports blueprint nsx-integrated-services

Change-Id: Ib02716fe447f1d7f47f2f49d16f0d2ad7afe741f
This commit is contained in:
armando-migliaccio 2013-09-25 17:29:58 -07:00 committed by Gerrit Code Review
parent c0e837e840
commit ec0ff2acf8

View File

@ -119,6 +119,16 @@ function neutron_plugin_configure_service() {
if [[ "$NVP_REDIRECTS" != "" ]]; then if [[ "$NVP_REDIRECTS" != "" ]]; then
iniset /$Q_PLUGIN_CONF_FILE DEFAULT redirects $NVP_REDIRECTS iniset /$Q_PLUGIN_CONF_FILE DEFAULT redirects $NVP_REDIRECTS
fi 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() { function neutron_plugin_setup_interface_driver() {