Browse code

lib/neutron: Fix some settings

* Set ml2_type_flat setting so that the public flat network is created
correctly

* Set securitygroup driver correctly

It should be set as:

[securitygroup]
firewall_driver = iptables

Change-Id: I7369b45fbc5a47ce958693c67a1902a8cb24f367

Sean M. Collins authored on 2016/12/16 01:29:28
Showing 1 changed files
... ...
@@ -161,6 +161,7 @@ function configure_neutron_new {
161 161
         iniset $NEUTRON_CORE_PLUGIN_CONF ml2 tenant_network_types vxlan
162 162
         iniset $NEUTRON_CORE_PLUGIN_CONF ml2 mechanism_drivers openvswitch,linuxbridge
163 163
         iniset $NEUTRON_CORE_PLUGIN_CONF ml2_type_vxlan vni_ranges 1001:2000
164
+        iniset $NEUTRON_CORE_PLUGIN_CONF ml2_type_flat flat_networks public
164 165
         if [[ "$NEUTRON_PORT_SECURITY" = "True" ]]; then
165 166
             iniset $NEUTRON_CORE_PLUGIN_CONF ml2 extension_drivers port_security
166 167
         fi
... ...
@@ -173,10 +174,10 @@ function configure_neutron_new {
173 173
 
174 174
         # Configure the neutron agent
175 175
         if [[ $NEUTRON_AGENT == "linuxbridge" ]]; then
176
-            iniset $NEUTRON_CORE_PLUGIN_CONF securitygroup iptables
176
+            iniset $NEUTRON_CORE_PLUGIN_CONF securitygroup firewall_driver iptables
177 177
             iniset $NEUTRON_CORE_PLUGIN_CONF vxlan local_ip $HOST_IP
178 178
         else
179
-            iniset $NEUTRON_CORE_PLUGIN_CONF securitygroup iptables_hybrid
179
+            iniset $NEUTRON_CORE_PLUGIN_CONF securitygroup firewall_driver iptables_hybrid
180 180
             iniset $NEUTRON_CORE_PLUGIN_CONF ovs local_ip $HOST_IP
181 181
         fi
182 182