NSX_V3: always set the metadata proxy in nova.conf

For devstack ensure that this is always set. This willenable the code
to work for native and non native matadata support

Change-Id: Ibdf0031d99fedbe3cbeb1f40dd19d52b7669d4bb
This commit is contained in:
Gary Kotton 2016-09-04 03:21:15 -07:00 committed by garyk
parent cf2dcccc7f
commit 62f0aa3cb5
1 changed files with 1 additions and 1 deletions

View File

@ -78,9 +78,9 @@ function neutron_plugin_create_nova_conf {
fi
# if n-api is enabled, then setup the metadata_proxy_shared_secret
if is_service_enabled n-api; then
iniset $NOVA_CONF neutron service_metadata_proxy True
if [[ "$NATIVE_DHCP_METADATA" == "True" ]]; then
iniset $NOVA_CONF neutron metadata_proxy_shared_secret $METADATA_PROXY_SHARED_SECRET
iniset $NOVA_CONF neutron service_metadata_proxy True
fi
fi
}