Browse code

Merge "Make tempest L3 capable plugin aware."

Jenkins authored on 2013/12/09 11:32:39
Showing 2 changed files
... ...
@@ -115,6 +115,13 @@ Q_ROUTER_NAME=${Q_ROUTER_NAME:-router1}
115 115
 # nova vif driver that all plugins should use
116 116
 NOVA_VIF_DRIVER=${NOVA_VIF_DRIVER:-"nova.virt.libvirt.vif.LibvirtGenericVIFDriver"}
117 117
 
118
+# The next two variables are configured by plugin
119
+# e.g.  _configure_neutron_l3_agent or lib/neutron_plugins/*
120
+#
121
+# The plugin supports L3.
122
+Q_L3_ENABLED=${Q_L3_ENABLED:-False}
123
+# L3 routers exist per tenant
124
+Q_L3_ROUTER_PER_TENANT=${Q_L3_ROUTER_PER_TENANT:-False}
118 125
 
119 126
 # List of config file names in addition to the main plugin config file
120 127
 # See _configure_neutron_common() for details about setting it up
... ...
@@ -15,6 +15,7 @@
15 15
 #   - ``PUBLIC_NETWORK_NAME``
16 16
 #   - ``Q_USE_NAMESPACE``
17 17
 #   - ``Q_ROUTER_NAME``
18
+#   - ``Q_L3_ENABLED``
18 19
 #   - ``VIRT_DRIVER``
19 20
 #   - ``LIBVIRT_TYPE``
20 21
 #   - ``KEYSTONE_SERVICE_PROTOCOL``, ``KEYSTONE_SERVICE_HOST`` from lib/keystone
... ...
@@ -202,7 +203,7 @@ function configure_tempest() {
202 202
 
203 203
     ssh_connect_method=${TEMPEST_SSH_CONNECT_METHOD:-$ssh_connect_method}
204 204
 
205
-    if is_service_enabled q-l3; then
205
+    if [ "$Q_L3_ENABLED" = "True" ]; then
206 206
         public_network_id=$(neutron net-list | grep $PUBLIC_NETWORK_NAME | \
207 207
             awk '{print $2}')
208 208
         if [ "$Q_USE_NAMESPACE" == "False" ]; then