This patch adds support for setting arbitrary Neutron DHCP agent options.
An example of using it would be to add this to your localrc:
Q_DHCP_EXTRA_DEFAULT_OPTS=(enable_multihost=True)
Change-Id: I56d267eafa06c52c3867e3396483f5fde3ee5570
| ... | ... |
@@ -541,6 +541,14 @@ function _configure_neutron_dhcp_agent() {
|
| 541 | 541 |
iniset $Q_DHCP_CONF_FILE DEFAULT use_namespaces $Q_USE_NAMESPACE |
| 542 | 542 |
iniset $Q_DHCP_CONF_FILE DEFAULT root_helper "$Q_RR_COMMAND" |
| 543 | 543 |
|
| 544 |
+ # Define extra "DEFAULT" configuration options when q-dhcp is configured by |
|
| 545 |
+ # defining the array ``Q_DHCP_EXTRA_DEFAULT_OPTS``. |
|
| 546 |
+ # For Example: ``Q_DHCP_EXTRA_DEFAULT_OPTS=(foo=true bar=2)`` |
|
| 547 |
+ for I in "${Q_DHCP_EXTRA_DEFAULT_OPTS[@]}"; do
|
|
| 548 |
+ # Replace the first '=' with ' ' for iniset syntax |
|
| 549 |
+ iniset $Q_DHCP_CONF_FILE DEFAULT ${I/=/ }
|
|
| 550 |
+ done |
|
| 551 |
+ |
|
| 544 | 552 |
_neutron_setup_interface_driver $Q_DHCP_CONF_FILE |
| 545 | 553 |
|
| 546 | 554 |
neutron_plugin_configure_dhcp_agent |