- job:
    name: neutron-tempest-plugin-api-xena
    parent: neutron-tempest-plugin-base
    nodeset: openstack-single-node-focal
    override-checkout: stable/xena
    required-projects: &required-projects-xena
      - openstack/neutron
      - name: openstack/neutron-tempest-plugin
        override-checkout: 2.3.0
      - openstack/tempest
    vars:
      tempest_concurrency: 4
      tempest_test_regex: ^neutron_tempest_plugin\.api
      # TODO(slaweq): find a way to put this list of extensions in
      # neutron repository and keep it different per branch,
      # then it could be removed from here
      network_api_extensions_common: &api_extensions
        - address-group
        - address-scope
        - agent
        - allowed-address-pairs
        - auto-allocated-topology
        - availability_zone
        - binding
        - default-subnetpools
        - dhcp_agent_scheduler
        - dns-domain-ports
        - dns-integration
        - dns-integration-domain-keywords
        - empty-string-filtering
        - expose-port-forwarding-in-fip
        - expose-l3-conntrack-helper
        - ext-gw-mode
        - external-net
        - extra_dhcp_opt
        - extraroute
        - extraroute-atomic
        - filter-validation
        - fip-port-details
        - flavors
        - floating-ip-port-forwarding
        - floatingip-pools
        - ip-substring-filtering
        - l3-conntrack-helper
        - l3-flavors
        - l3-ha
        - l3_agent_scheduler
        - logging
        - metering
        - multi-provider
        - net-mtu
        - net-mtu-writable
        - network-ip-availability
        - network_availability_zone
        - network-segment-range
        - pagination
        - port-device-profile
        - port-resource-request
        - port-mac-address-regenerate
        - port-security
        - port-security-groups-filtering
        - project-id
        - provider
        - qos
        - qos-bw-minimum-ingress
        - qos-fip
        - quotas
        - quota_details
        - rbac-address-group
        - rbac-address-scope
        - rbac-policies
        - rbac-security-groups
        - rbac-subnetpool
        - router
        - router-admin-state-down-before-update
        - router_availability_zone
        - security-group
        - security-groups-remote-address-group
        - segment
        - service-type
        - sorting
        - standard-attr-description
        - standard-attr-revisions
        - standard-attr-segment
        - standard-attr-tag
        - standard-attr-timestamp
        - subnet_allocation
        - subnet-dns-publish-fixed-ip
        - subnet-service-types
        - subnetpool-prefix-ops
        - tag-ports-during-bulk-creation
        - trunk
        - trunk-details
        - uplink-status-propagation
      network_api_extensions_tempest:
        - dvr
      network_available_features: &available_features
        - ipv6_metadata

- job:
    name: neutron-tempest-plugin-scenario-openvswitch-xena
    parent: neutron-tempest-plugin-openvswitch
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      tempest_test_regex: "\
          (^neutron_tempest_plugin.scenario)|\
          (^tempest.api.compute.servers.test_attach_interfaces)|\
          (^tempest.api.compute.servers.test_multiple_create)"
      network_api_extensions: *api_extensions
      network_available_features: *available_features
      devstack_localrc:
        NETWORK_API_EXTENSIONS: "{{ network_api_extensions | join(',') }}"
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            network-feature-enabled:
              available_features: "{{ network_available_features | join(',') }}"

- job:
    name: neutron-tempest-plugin-scenario-openvswitch-iptables_hybrid-xena
    parent: neutron-tempest-plugin-openvswitch-iptables_hybrid
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      tempest_test_regex: "\
          (^neutron_tempest_plugin.scenario)|\
          (^tempest.api.compute.servers.test_attach_interfaces)|\
          (^tempest.api.compute.servers.test_multiple_create)"
      network_api_extensions: *api_extensions
      network_available_features: *available_features
      devstack_localrc:
        NETWORK_API_EXTENSIONS: "{{ network_api_extensions | join(',') }}"
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            network-feature-enabled:
              available_features: "{{ network_available_features | join(',') }}"

- job:
    name: neutron-tempest-plugin-scenario-linuxbridge-xena
    parent: neutron-tempest-plugin-linuxbridge
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      tempest_test_regex: "\
          (^neutron_tempest_plugin.scenario)|\
          (^tempest.api.compute.servers.test_attach_interfaces)|\
          (^tempest.api.compute.servers.test_multiple_create)"
      network_api_extensions: *api_extensions
      network_available_features: *available_features
      devstack_localrc:
        NETWORK_API_EXTENSIONS: "{{ network_api_extensions | join(',') }}"
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            network-feature-enabled:
              available_features: "{{ network_available_features | join(',') }}"

- job:
    name: neutron-tempest-plugin-scenario-ovn-xena
    parent: neutron-tempest-plugin-ovn
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      tempest_test_regex: "\
          (^neutron_tempest_plugin.scenario)|\
          (^tempest.api.compute.servers.test_attach_interfaces)|\
          (^tempest.api.compute.servers.test_multiple_create)"
      network_api_extensions: *api_extensions
      devstack_localrc:
        NETWORK_API_EXTENSIONS: "{{ network_api_extensions | join(',') }}"
      devstack_local_conf:
        test-config:
          $TEMPEST_CONFIG:
            network-feature-enabled:
              available_features: ""

- job:
    name: neutron-tempest-plugin-dvr-multinode-scenario-xena
    parent: neutron-tempest-plugin-dvr-multinode-scenario
    nodeset: openstack-two-node-focal
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      network_api_extensions_common: *api_extensions

- job:
    name: neutron-tempest-plugin-designate-scenario-xena
    parent: neutron-tempest-plugin-designate-scenario
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      network_api_extensions_common: *api_extensions

- job:
    name: neutron-tempest-plugin-sfc-xena
    parent: neutron-tempest-plugin-sfc
    nodeset: openstack-single-node-focal
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      network_api_extensions_common: *api_extensions

- job:
    name: neutron-tempest-plugin-bgpvpn-bagpipe-xena
    parent: neutron-tempest-plugin-bgpvpn-bagpipe
    nodeset: openstack-single-node-focal
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      network_api_extensions: *api_extensions

- job:
    name: neutron-tempest-plugin-dynamic-routing-xena
    parent: neutron-tempest-plugin-dynamic-routing
    nodeset: openstack-single-node-focal
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      network_api_extensions_common: *api_extensions
      devstack_localrc:
        NETWORK_API_EXTENSIONS: "{{ (network_api_extensions_common + network_api_extensions_bgp) | join(',') }}"
        Q_AGENT: openvswitch
        Q_ML2_TENANT_NETWORK_TYPE: vxlan
        Q_ML2_PLUGIN_MECHANISM_DRIVERS: openvswitch
      devstack_services:
        # Disable OVN services
        br-ex-tcpdump: false
        br-int-flows: false
        ovn-controller: false
        ovn-northd: false
        ovs-vswitchd: false
        ovsdb-server: false
        q-ovn-metadata-agent: false
        # Neutron services
        q-agt: true
        q-dhcp: true
        q-meta: true
        q-metering: true
        q-l3: true
        neutron-dr: true
        neutron-dr-agent: true

- job:
    name: neutron-tempest-plugin-vpnaas-xena
    parent: neutron-tempest-plugin-vpnaas
    nodeset: openstack-single-node-focal
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      network_api_extensions_common: *api_extensions

- job:
    name: neutron-tempest-plugin-tap-as-a-service-xena
    parent: neutron-tempest-plugin-tap-as-a-service
    nodeset: openstack-single-node-focal
    override-checkout: stable/xena
    required-projects: *required-projects-xena
    vars:
      network_api_extensions_common: *api_extensions
