variable "instance_type" {
description = "AWS instance type"
type = string
- default = "c5n.4xlarge"
+ default = "c5n.9xlarge"
}
variable "testbed_name" {
variable "instance_type" {
description = "AWS instance type"
type = string
- default = "c5n.4xlarge"
+ default = "c5n.9xlarge"
}
variable "testbed_name" {
-# Copyright (c) 2020 Cisco and/or its affiliates.
+# Copyright (c) 2021 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
reserve_and_cleanup_testbed || die
select_tags || die
compose_pybot_arguments || die
+set_environment_variables || die
run_pybot || die
untrap_and_unreserve_testbed || die
move_archives || die
#!/usr/bin/env bash
-# Copyright (c) 2020 Cisco and/or its affiliates.
+# Copyright (c) 2021 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
activate_docker_topology || die
select_vpp_device_tags || die
compose_pybot_arguments || die
+set_environment_variables || die
run_pybot || die
move_archives || die
die_on_pybot_error || die
done
}
+
+function set_environment_variables () {
+
+ # Depending on testbed topology, overwrite defaults set in the
+ # resources/libraries/python/Constants.py file
+ #
+ # Variables read:
+ # - TEST_CODE - String affecting test selection, usually jenkins job name.
+ # Variables set:
+ # See specific cases
+
+ set -exuo pipefail
+
+ case "${TEST_CODE}" in
+ *"2n-aws"* | *"3n-aws"*)
+ # T-Rex 2.88 workaround for ENA NICs
+ export TREX_RX_DESCRIPTORS_COUNT=1024
+ export TREX_EXTRA_CMDLINE="--mbuf-factor 19"
+ # Settings to prevent duration stretching
+ export PERF_TRIAL_STL_DELAY=0.1
+ ;;
+ esac
+}
+
+
function untrap_and_unreserve_testbed () {
# Use this as a trap function to ensure testbed does not remain reserved.