Configure ovn_metadata_enabled option in devstack

Depending on whether OVN metadata service is enabled or not,
devstack will now configure the plugin accordingly.

Change-Id: Ibf8c7b4eea58e105ae660dedff98aeb673f375a4
This commit is contained in:
Daniel Alvarez 2017-07-14 12:11:50 +00:00
parent ad1fea3e7b
commit e99144b872
1 changed files with 6 additions and 0 deletions

View File

@ -202,6 +202,12 @@ function configure_ovn_plugin {
populate_ml2_config /$Q_PLUGIN_CONF_FILE ovn ovn_l3_scheduler="$OVN_L3_SCHEDULER"
populate_ml2_config /$Q_PLUGIN_CONF_FILE securitygroup enable_security_group="$Q_USE_SECGROUP"
inicomment /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver
if is_service_enabled networking-ovn-metadata-agent; then
populate_ml2_config /$Q_PLUGIN_CONF_FILE ovn ovn_metadata_enabled=True
else
populate_ml2_config /$Q_PLUGIN_CONF_FILE ovn ovn_metadata_enabled=False
fi
fi
if is_service_enabled q-dhcp ; then