Merge "Add MIDONET settings to dhcp.ini"

This commit is contained in:
Jenkins 2013-10-22 12:28:47 +00:00 committed by Gerrit Code Review
commit 31b1a7e136

View File

@ -37,6 +37,18 @@ function neutron_plugin_configure_dhcp_agent() {
iniset $Q_DHCP_CONF_FILE DEFAULT interface_driver $DHCP_INTERFACE_DRIVER
iniset $Q_DHCP_CONF_FILE DEFAULT use_namespaces True
iniset $Q_DHCP_CONF_FILE DEFAULT enable_isolated_metadata True
if [[ "$MIDONET_API_URI" != "" ]]; then
iniset $Q_DHCP_CONF_FILE MIDONET midonet_uri "$MIDONET_API_URI"
fi
if [[ "$MIDONET_USERNAME" != "" ]]; then
iniset $Q_DHCP_CONF_FILE MIDONET username "$MIDONET_USERNAME"
fi
if [[ "$MIDONET_PASSWORD" != "" ]]; then
iniset $Q_DHCP_CONF_FILE MIDONET password "$MIDONET_PASSWORD"
fi
if [[ "$MIDONET_PROJECT_ID" != "" ]]; then
iniset $Q_DHCP_CONF_FILE MIDONET project_id "$MIDONET_PROJECT_ID"
fi
}
function neutron_plugin_configure_l3_agent() {