Browse code

Add capability of adding additional network API extensions

Currently, devstack has NETWORK_API_EXTENSIONS var to define
the network API extensions. NETWORK_API_EXTENSIONS is defaulted
to 'all' for master and hard coded list of extensions per release.
Zuul jobs of network extensions (for example neutron-fwaas) need
add the some extra extensions in the default list. To do so, they
need to duplicate all the defaults extensions and then add the extra
extensions. Much difficult situation is when defaults extensions list
vary from release to release so they have to keep updating the
NETWORK_API_EXTENSIONS per release.

This commit defines a new var ADDITIONAL_NETWORK_API_EXTENSIONS which
will take extra extensions and append into the default list. This way
Zuul jobs do not need to duplicate the default extensions.

Change-Id: I7270c9b9e047a851970439522c0356c9089a5b74

Ghanshyam Mann authored on 2019/06/20 16:42:31
Showing 1 changed files
... ...
@@ -618,6 +618,9 @@ function configure_tempest {
618 618
         # Remove disabled extensions
619 619
         network_api_extensions=$(remove_disabled_extensions $network_api_extensions $DISABLE_NETWORK_API_EXTENSIONS)
620 620
     fi
621
+    if [[ -n "$ADDITIONAL_NETWORK_API_EXTENSIONS" ]] && [[ "$network_api_extensions" != "all" ]]; then
622
+        network_api_extensions+=",$ADDITIONAL_NETWORK_API_EXTENSIONS"
623
+    fi
621 624
     iniset $TEMPEST_CONFIG network-feature-enabled api_extensions $network_api_extensions
622 625
     # Swift API Extensions
623 626
     local object_storage_api_extensions=${OBJECT_STORAGE_API_EXTENSIONS:-"all"}