|
...
|
...
|
@@ -32,23 +32,10 @@ function neutron_plugin_configure_debug_command() {
|
|
32
|
32
|
|
|
33
|
33
|
function neutron_plugin_configure_dhcp_agent() {
|
|
34
|
34
|
DHCP_DRIVER=${DHCP_DRIVER:-"neutron.plugins.midonet.agent.midonet_driver.DhcpNoOpDriver"}
|
|
35
|
|
- DHCP_INTERFACE_DRIVER=${DHCP_INTEFACE_DRIVER:-"neutron.plugins.midonet.agent.midonet_driver.MidonetInterfaceDriver"}
|
|
|
35
|
+ neutron_plugin_setup_interface_driver $Q_DHCP_CONF_FILE
|
|
36
|
36
|
iniset $Q_DHCP_CONF_FILE DEFAULT dhcp_driver $DHCP_DRIVER
|
|
37
|
|
- iniset $Q_DHCP_CONF_FILE DEFAULT interface_driver $DHCP_INTERFACE_DRIVER
|
|
38
|
37
|
iniset $Q_DHCP_CONF_FILE DEFAULT use_namespaces True
|
|
39
|
38
|
iniset $Q_DHCP_CONF_FILE DEFAULT enable_isolated_metadata True
|
|
40
|
|
- if [[ "$MIDONET_API_URI" != "" ]]; then
|
|
41
|
|
- iniset $Q_DHCP_CONF_FILE MIDONET midonet_uri "$MIDONET_API_URI"
|
|
42
|
|
- fi
|
|
43
|
|
- if [[ "$MIDONET_USERNAME" != "" ]]; then
|
|
44
|
|
- iniset $Q_DHCP_CONF_FILE MIDONET username "$MIDONET_USERNAME"
|
|
45
|
|
- fi
|
|
46
|
|
- if [[ "$MIDONET_PASSWORD" != "" ]]; then
|
|
47
|
|
- iniset $Q_DHCP_CONF_FILE MIDONET password "$MIDONET_PASSWORD"
|
|
48
|
|
- fi
|
|
49
|
|
- if [[ "$MIDONET_PROJECT_ID" != "" ]]; then
|
|
50
|
|
- iniset $Q_DHCP_CONF_FILE MIDONET project_id "$MIDONET_PROJECT_ID"
|
|
51
|
|
- fi
|
|
52
|
39
|
}
|
|
53
|
40
|
|
|
54
|
41
|
function neutron_plugin_configure_l3_agent() {
|
|
...
|
...
|
@@ -78,8 +65,8 @@ function neutron_plugin_configure_service() {
|
|
78
|
78
|
}
|
|
79
|
79
|
|
|
80
|
80
|
function neutron_plugin_setup_interface_driver() {
|
|
81
|
|
- # May change in the future
|
|
82
|
|
- :
|
|
|
81
|
+ local conf_file=$1
|
|
|
82
|
+ iniset $conf_file DEFAULT interface_driver neutron.agent.linux.interface.MidonetInterfaceDriver
|
|
83
|
83
|
}
|
|
84
|
84
|
|
|
85
|
85
|
function has_neutron_plugin_security_group() {
|