Browse code

Add lost function of is_provider_network

This is a follow up patch of [1].
In [1], source has been moved from lib/neutron-legacy to lib/neutron_plugins/services/l3.
However, one necessary function of is_provider_network is lost.
And this cause devstack install fail.

[1]https://review.openstack.org/168438/

Change-Id: I413b3577ec5b11ee0ee01f2368364117962494bb

watanabe.isao authored on 2016/05/12 20:35:20
Showing 1 changed files
... ...
@@ -360,3 +360,10 @@ function _neutron_configure_router_v6 {
360 360
         _neutron_set_router_id
361 361
     fi
362 362
 }
363
+
364
+function is_provider_network {
365
+    if [ "$Q_USE_PROVIDER_NETWORKING" == "True" ] && [ "$Q_L3_ENABLED" == "False" ]; then
366
+        return 0
367
+    fi
368
+    return 1
369
+}