1 # Copyright (c) 2019 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
14 """Constants used in CSIT."""
17 class Constants(object):
18 """Constants used in CSIT.
20 TODO: Yaml files are easier for humans to edit.
21 Figure out how to set the attributes by parsing a file
22 that works regardless of current working directory.
25 # OpenVPP testing directory location at topology nodes
26 REMOTE_FW_DIR = '/tmp/openvpp-testing'
28 # shell scripts location
29 RESOURCES_LIB_SH = 'resources/libraries/bash'
31 # Python API provider location
32 RESOURCES_PAPI_PROVIDER = 'resources/tools/papi/vpp_papi_provider.py'
34 # vat templates location
35 RESOURCES_TPL_VAT = 'resources/templates/vat'
37 # OpenVPP VAT binary name
38 VAT_BIN_NAME = 'vpp_api_test'
40 # VPP service unit name
43 # QEMU version to install
44 QEMU_INSTALL_VERSION = 'qemu-2.11.2'
46 # QEMU install directory
47 QEMU_INSTALL_DIR = '/opt/qemu-2.11.2'
49 # QEMU performance test VM kernel image path
50 QEMU_PERF_VM_KERNEL = '/opt/boot/vmlinuz'
52 # QEMU performance test VM nested image path
53 QEMU_PERF_VM_IMAGE = '/var/lib/vm/csit-nested-1.7.img'
55 # TRex install version
56 TREX_INSTALL_VERSION = '2.35'
58 # TRex install directory
59 TREX_INSTALL_DIR = '/opt/trex-core-2.35'
61 # Kubernetes templates location
62 RESOURCES_TPL_K8S = 'resources/templates/kubernetes'
64 # KernelVM templates location
65 RESOURCES_TPL_VM = 'resources/templates/vm'
67 # Honeycomb directory location at topology nodes:
68 REMOTE_HC_DIR = '/opt/honeycomb'
70 # Honeycomb persistence files location
71 REMOTE_HC_PERSIST = '/var/lib/honeycomb/persist'
73 # Honeycomb log file location
74 REMOTE_HC_LOG = '/var/log/honeycomb/honeycomb.log'
76 # Honeycomb templates location
77 RESOURCES_TPL_HC = 'resources/templates/honeycomb'
79 # ODL Client Restconf listener port
82 # Sysctl kernel.core_pattern
83 KERNEL_CORE_PATTERN = '/tmp/%p-%u-%g-%s-%t-%h-%e.core'
86 CORE_DUMP_DIR = '/tmp'