#!/usr/bin/env bash

set -ex

VENV=${1:-"dsvm-functional"}
DEVSTACK_LOCAL_CONFIG="NETWORK_API_EXTENSIONS=all"
DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://opendev.org/openstack/neutron-vpnaas"
export DEVSTACK_LOCAL_CONFIG

case $VENV in
    dsvm-functional | dsvm-functional-sswan)
        # The following need to be set before sourcing
        # configure_for_func_testing.
        GATE_DEST=$BASE/new
        GATE_STACK_USER=stack
        NEUTRON_PATH=$GATE_DEST/neutron
        PROJECT_NAME=neutron-vpnaas
        NEUTRON_VPN_PATH=$GATE_DEST/$PROJECT_NAME
        DEVSTACK_PATH=$GATE_DEST/devstack
        IS_GATE=True
        USE_CONSTRAINT_ENV=False
        BUILD_OVS_FROM_SOURCE=False

        source $NEUTRON_VPN_PATH/tools/configure_for_vpn_func_testing.sh

        # Make the workspace owned by the stack user
        sudo chown -R $STACK_USER:$STACK_USER $BASE

        configure_host_for_vpn_func_testing
        ;;
    api|tempest)
        $BASE/new/devstack-gate/devstack-vm-gate.sh
        ;;
esac

#!/usr/bin/env bash

set -ex

VENV=${1:-"dsvm-functional"}
DEVSTACK_LOCAL_CONFIG="NETWORK_API_EXTENSIONS=all"
DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-vpnaas https://opendev.org/openstack/neutron-vpnaas"
export DEVSTACK_LOCAL_CONFIG

case $VENV in
    dsvm-functional | dsvm-functional-sswan)
        # The following need to be set before sourcing
        # configure_for_func_testing.
        GATE_DEST=$BASE/new
        GATE_STACK_USER=stack
        NEUTRON_PATH=$GATE_DEST/neutron
        PROJECT_NAME=neutron-vpnaas
        NEUTRON_VPN_PATH=$GATE_DEST/$PROJECT_NAME
        DEVSTACK_PATH=$GATE_DEST/devstack
        IS_GATE=True
        USE_CONSTRAINT_ENV=False
        Q_BUILD_OVS_FROM_GIT=False

        source $NEUTRON_VPN_PATH/tools/configure_for_vpn_func_testing.sh

        # Make the workspace owned by the stack user
        sudo chown -R $STACK_USER:$STACK_USER $BASE

        configure_host_for_vpn_func_testing
        ;;
    api|tempest)
        $BASE/new/devstack-gate/devstack-vm-gate.sh
        ;;
esac

Remove BUILD_OVS_FROM_SOURCE from the functional tests job
Remove BUILD_OVS_FROM_SOURCE from the functional tests job

This config option was removed from the Neutron's
configure_for_func_testing.sh script and is replaced with
the Q_BUILD_OVS_FROM_GIT option used also by Devstack.

Depends-On: https://review.opendev.org/c/openstack/neutron/+/799625
Change-Id: If92c28e75f900955cc96907a0a02cca98fe55a53
