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