Browse code

Merge "Add a Tunnel end-point variable for Neutron configuration"

Jenkins authored on 2014/07/16 03:29:58
Showing 4 changed files
... ...
@@ -203,6 +203,13 @@ OVS_PHYSICAL_BRIDGE=${OVS_PHYSICAL_BRIDGE:-}
203 203
 # Example: ``LB_PHYSICAL_INTERFACE=eth1``
204 204
 LB_PHYSICAL_INTERFACE=${LB_PHYSICAL_INTERFACE:-}
205 205
 
206
+# When Neutron tunnels are enabled it is needed to specify the
207
+# IP address of the end point in the local server. This IP is set
208
+# by default to the same IP address that the HOST IP.
209
+# This variable can be used to specify a different end point IP address
210
+# Example: ``TUNNEL_ENDPOINT_IP=1.1.1.1``
211
+TUNNEL_ENDPOINT_IP=${TUNNEL_ENDPOINT_IP:-$HOST_IP}
212
+
206 213
 # With the openvswitch plugin, set to True in ``localrc`` to enable
207 214
 # provider GRE tunnels when ``ENABLE_TENANT_TUNNELS`` is False.
208 215
 #
... ...
@@ -99,7 +99,7 @@ function neutron_plugin_configure_service {
99 99
     fi
100 100
 
101 101
     # Since we enable the tunnel TypeDrivers, also enable a local_ip
102
-    iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $HOST_IP
102
+    iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $TUNNEL_ENDPOINT_IP
103 103
 
104 104
     populate_ml2_config /$Q_PLUGIN_CONF_FILE ml2 mechanism_drivers=$Q_ML2_PLUGIN_MECHANISM_DRIVERS
105 105
 
... ...
@@ -54,7 +54,7 @@ function neutron_plugin_configure_plugin_agent {
54 54
             die $LINENO "You are running OVS version $OVS_VERSION. OVS 1.4+ is required for tunneling between multiple hosts."
55 55
         fi
56 56
         iniset /$Q_PLUGIN_CONF_FILE ovs enable_tunneling True
57
-        iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $HOST_IP
57
+        iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $TUNNEL_ENDPOINT_IP
58 58
     fi
59 59
 
60 60
     # Setup physical network bridge mappings.  Override
... ...
@@ -48,7 +48,7 @@ function neutron_plugin_configure_plugin_agent {
48 48
             die $LINENO "You are running OVS version $OVS_VERSION. OVS 1.4+ is required for tunneling between multiple hosts."
49 49
         fi
50 50
         iniset /$Q_PLUGIN_CONF_FILE ovs enable_tunneling True
51
-        iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $HOST_IP
51
+        iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $TUNNEL_ENDPOINT_IP
52 52
     fi
53 53
 
54 54
     # Setup physical network bridge mappings.  Override