+#function to install Openstack Clients for Testing
+#This will pull the latest versions compatiable with the
+# openstack release
+function install_openstack_clients_in_robot_vm() {
+ packages=("python-novaclient" "python-neutronclient" "python-openstackclient")
+ for plugin_name in ${ENABLE_OS_PLUGINS}; do
+ if [ "$plugin_name" == "networking-sfc" ]; then
+ packages+=("networking-sfc")
+ fi
+ done
+ openstack_version=$(echo ${OPENSTACK_BRANCH} | cut -d/ -f2)
+ #If the job tests "master", we will use the clients from previous released stable version to avoid failures
+ if [ "${openstack_version}" == "master" ]; then
+ openstack_version=${OPENSTACK_MASTER_CLIENTS_VERSION}
+ fi
+ for package in ${packages[*]}; do
+ echo "Get the current support version of the package ${package}"
+ wget https://raw.githubusercontent.com/openstack/requirements/stable/${openstack_version}/upper-constraints.txt -O /tmp/constraints.txt 2>/dev/null
+ echo "$PYTHON -m pip install --upgrade --no-deps ${package} --no-cache-dir -c /tmp/constraints.txt"
+ $PYTHON -m pip install --upgrade --no-deps ${package} --no-cache-dir -c /tmp/constraints.txt
+ echo "$PYTHON -m pip install ${package} --no-cache-dir -c /tmp/constraints.txt"
+ $PYTHON -m pip install ${package} --no-cache-dir -c /tmp/constraints.txt
+ done
+
+ if [ "${ENABLE_NETWORKING_L2GW}" == "yes" ]; then
+ #networking-l2gw is not officially available in any release yet. Gettting the latest stable version.
+ $PYTHON -m pip install networking-l2gw==11.0.0
+ fi
+}
+
+
+