- project:
    templates:
      - check-requirements
      - openstack-cover-jobs-neutron
      - openstack-python3-yoga-jobs-neutron
      - periodic-stable-jobs-neutron
      - publish-openstack-docs-pti
      - release-notes-jobs-python3
    check:
      jobs:
        - neutron-vpnaas-functional-sswan
        - neutron-tempest-plugin-vpnaas
        - neutron-tempest-plugin-vpnaas-libreswan-centos:
            # TODO(mlavalle) switch to voting when this job is moved to Centos
            # 8
            voting: false
    gate:
      jobs:
        - neutron-vpnaas-functional-sswan
        - neutron-tempest-plugin-vpnaas
        # TODO(mlavalle) uncomment following line  when the job is moved to
        # Centos 8
        # - neutron-tempest-plugin-vpnaas-libreswan-centos
    experimental:
      jobs:
        - neutron-vpnaas-rally

- job:
    name: neutron-tempest-plugin-vpnaas-libreswan-centos
    parent: neutron-tempest-plugin-vpnaas
    nodeset: devstack-single-node-centos-7
    vars:
      devstack_localrc:
        IPSEC_PACKAGE: libreswan
        USE_PYTHON3: false
      # VPNaaS 4in6 and 6in4 scenarios would fail after LibreSwan 3.18.
      # Base node using Libreswan 3.20 on CentOS 7.4.
      # Refer to https://github.com/libreswan/libreswan/issues/175.
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            neutron_vpnaas_plugin_options:
              skip_4in6_6in4_tests: true

- job:
    name: neutron-vpnaas-functional-sswan
    parent: neutron-functional
    pre-run: playbooks/configure_functional_job.yaml
    vars:
      project_name: neutron-vpnaas
      tox_envlist: dsvm-functional-sswan

- job:
    name: neutron-vpnaas-rally
    parent: rally-task-neutron
    timeout: 7800
    vars:
      devstack_plugins:
        rally-openstack: https://opendev.org/openstack/rally-openstack
        neutron-vpnaas: https://opendev.org/openstack/neutron-vpnaas
      rally_task: rally-jobs/rally-configs/rally_config_dvr.yaml
    required-projects:
      - openstack/devstack-gate
      - openstack/neutron
      - openstack/neutron-vpnaas
      - openstack/rally
      - openstack/rally-openstack
    irrelevant-files:
      - ^.*\.rst$
      - ^doc/.*$
      - ^neutron_vpnaas/tests/unit/.*$
      - ^releasenotes/.*$
