b89f50c4dfc31bbee63dfe334fb65da6913ea368
[csit.git] / resources / libraries / python / Constants.py
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:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
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.
13
14 """Constants used in CSIT."""
15
16
17 class Constants(object):
18     """Constants used in CSIT.
19
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.
23     """
24
25     # OpenVPP testing directory location at topology nodes
26     REMOTE_FW_DIR = '/tmp/openvpp-testing'
27
28     # shell scripts location
29     RESOURCES_LIB_SH = 'resources/libraries/bash'
30
31     # Python API provider location
32     RESOURCES_PAPI_PROVIDER = 'resources/tools/papi/vpp_papi_provider.py'
33
34     # vat templates location
35     RESOURCES_TPL_VAT = 'resources/templates/vat'
36
37     # OpenVPP VAT binary name
38     VAT_BIN_NAME = 'vpp_api_test'
39
40     # VPP service unit name
41     VPP_UNIT = 'vpp'
42
43     # QEMU version to install
44     QEMU_INSTALL_VERSION = 'qemu-2.11.2'
45
46     # QEMU install directory
47     QEMU_INSTALL_DIR = '/opt/qemu-2.11.2'
48
49     # TRex install version
50     TREX_INSTALL_VERSION = '2.35'
51
52     # TRex install directory
53     TREX_INSTALL_DIR = '/opt/trex-core-2.35'
54
55     # Kubernetes templates location
56     RESOURCES_TPL_K8S = 'resources/templates/kubernetes'
57
58     # Honeycomb directory location at topology nodes:
59     REMOTE_HC_DIR = '/opt/honeycomb'
60
61     # Honeycomb persistence files location
62     REMOTE_HC_PERSIST = '/var/lib/honeycomb/persist'
63
64     # Honeycomb log file location
65     REMOTE_HC_LOG = '/var/log/honeycomb/honeycomb.log'
66
67     # Honeycomb templates location
68     RESOURCES_TPL_HC = 'resources/templates/honeycomb'
69
70     # ODL Client Restconf listener port
71     ODL_PORT = 8181
72
73     # Sysctl kernel.core_pattern
74     KERNEL_CORE_PATTERN = '/tmp/%p-%u-%g-%s-%t-%h-%e.core'
75
76     # Core dump directory
77     CORE_DUMP_DIR = '/tmp'