Browse code

Fix _configure_neutron_l3_agent

I goofed when moving it over, and it looks like the calls
to _move_neutron_addresses_route got clobbered.

Changes like a0d1b0151a9d9e169e6342f36a073e8154119924 ended up getting
dropped on the floor, so let's reintroduce them.

Change-Id: I3bbfbc56e2c663c47a03659a1dff96443c13af47

Sean M. Collins authored on 2016/05/12 04:35:10
Showing 1 changed files
... ...
@@ -90,29 +90,25 @@ function _determine_config_l3 {
90 90
 }
91 91
 
92 92
 function _configure_neutron_l3_agent {
93
-    local cfg_file
94 93
     Q_L3_ENABLED=True
95 94
 
96 95
     cp $NEUTRON_DIR/etc/l3_agent.ini.sample $Q_L3_CONF_FILE
97 96
 
98 97
     iniset $Q_L3_CONF_FILE DEFAULT verbose True
99 98
     iniset $Q_L3_CONF_FILE DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
100
-    iniset $Q_L3_CONF_FILE DEFAULT use_namespaces $Q_USE_NAMESPACE
101
-    iniset $Q_L3_CONF_FILE DEFAULT root_helper "$Q_RR_COMMAND"
99
+    iniset $Q_L3_CONF_FILE AGENT root_helper "$Q_RR_COMMAND"
102 100
     if [[ "$Q_USE_ROOTWRAP_DAEMON" == "True" ]]; then
103
-        iniset $Q_L3_CONF_FILE agent root_helper_daemon "$Q_RR_DAEMON_COMMAND"
101
+        iniset $Q_L3_CONF_FILE AGENT root_helper_daemon "$Q_RR_DAEMON_COMMAND"
104 102
     fi
105 103
 
106 104
     _neutron_setup_interface_driver $Q_L3_CONF_FILE
107 105
 
108 106
     neutron_plugin_configure_l3_agent
109 107
 
110
-    if [[ $(ip -f inet a s dev "$PUBLIC_INTERFACE" | grep -c 'global') != 0 ]]; then
111
-        _move_neutron_addresses_route "$PUBLIC_INTERFACE" "$OVS_PHYSICAL_BRIDGE" True "inet"
112
-    fi
108
+    _move_neutron_addresses_route "$PUBLIC_INTERFACE" "$OVS_PHYSICAL_BRIDGE" True False "inet"
113 109
 
114 110
     if [[ $(ip -f inet6 a s dev "$PUBLIC_INTERFACE" | grep -c 'global') != 0 ]]; then
115
-        _move_neutron_addresses_route "$PUBLIC_INTERFACE" "$OVS_PHYSICAL_BRIDGE" False "inet6"
111
+        _move_neutron_addresses_route "$PUBLIC_INTERFACE" "$OVS_PHYSICAL_BRIDGE" False False "inet6"
116 112
     fi
117 113
 }
118 114