Browse code

Merge "Make tempest L3 capable plugin aware" into stable/havana

Jenkins authored on 2014/01/26 00:16:04
Showing 2 changed files
... ...
@@ -110,6 +110,15 @@ Q_ALLOW_OVERLAPPING_IP=${Q_ALLOW_OVERLAPPING_IP:-True}
110 110
 Q_USE_DEBUG_COMMAND=${Q_USE_DEBUG_COMMAND:-False}
111 111
 # The name of the default q-l3 router
112 112
 Q_ROUTER_NAME=${Q_ROUTER_NAME:-router1}
113
+
114
+# The next two variables are configured by plugin
115
+# e.g.  _configure_neutron_l3_agent or lib/neutron_plugins/*
116
+#
117
+# The plugin supports L3.
118
+Q_L3_ENABLED=${Q_L3_ENABLED:-False}
119
+# L3 routers exist per tenant
120
+Q_L3_ROUTER_PER_TENANT=${Q_L3_ROUTER_PER_TENANT:-False}
121
+
113 122
 # List of config file names in addition to the main plugin config file
114 123
 # See _configure_neutron_common() for details about setting it up
115 124
 declare -a Q_PLUGIN_EXTRA_CONF_FILES
... ...
@@ -14,6 +14,7 @@
14 14
 # - ``PUBLIC_NETWORK_NAME``
15 15
 # - ``Q_USE_NAMESPACE``
16 16
 # - ``Q_ROUTER_NAME``
17
+# - ``Q_L3_ENABLED``
17 18
 # - ``VIRT_DRIVER``
18 19
 # - ``LIBVIRT_TYPE``
19 20
 # - ``KEYSTONE_SERVICE_PROTOCOL``, ``KEYSTONE_SERVICE_HOST`` from lib/keystone
... ...
@@ -186,7 +187,7 @@ function configure_tempest() {
186 186
         tenant_networks_reachable=true
187 187
     fi
188 188
 
189
-    if is_service_enabled q-l3; then
189
+    if [ "$Q_L3_ENABLED" = "True" ]; then
190 190
         public_network_id=$(neutron net-list | grep $PUBLIC_NETWORK_NAME | \
191 191
             awk '{print $2}')
192 192
         if [ "$Q_USE_NAMESPACE" == "False" ]; then