Add Deployment Unit to ApexLake
[yardstick.git] / yardstick / vTC / apexlake / experimental_framework / constants / conf_file_sections.py
1 # Copyright (c) 2015 Intel Research and Development Ireland Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15
16 # ------------------------------------------------------
17 # Configuration File Sections
18 # ------------------------------------------------------
19 CFS_PKTGEN = 'PacketGen'
20 CFS_GENERAL = 'General'
21 CFS_OPENSTACK = 'OpenStack'
22 CFS_EXPERIMENT_VNF = 'Experiment-VNF'
23 CFS_EXPERIMENT_GENERIC = 'Experiment-generic'
24 CFS_TESTCASE_PARAMETERS = 'Testcase-parameters'
25 CFS_DEPLOYMENT_PARAMETERS = 'Deployment-parameters'
26 CFS_INFLUXDB = 'InfluxDB'
27
28
29 def get_sections():
30     return [
31         CFS_PKTGEN,
32         CFS_GENERAL,
33         CFS_OPENSTACK,
34         CFS_EXPERIMENT_VNF,
35         # CFS_EXPERIMENT_GENERIC,
36         CFS_TESTCASE_PARAMETERS,
37         CFS_DEPLOYMENT_PARAMETERS,
38         CFS_INFLUXDB
39         # Add here eventually new sections in configuration file ...
40     ]
41
42
43 def get_sections_api():
44     return [
45         CFS_PKTGEN,
46         CFS_GENERAL,
47         CFS_INFLUXDB
48         # Add here eventually new sections in configuration file ...
49     ]
50
51 # ------------------------------------------------------
52 # General section parameters
53 # ------------------------------------------------------
54 CFSG_ITERATIONS = 'iterations'
55 CFSG_TEMPLATE_DIR = 'template_dir'
56 CFSG_TEMPLATE_NAME = 'template_base_name'
57 CFSG_RESULT_DIRECTORY = 'results_directory'
58 CFSG_BENCHMARKS = 'benchmarks'
59 CFSG_DEBUG = 'debug'
60
61
62 # ------------------------------------------------------
63 # InfluxDB
64 # ------------------------------------------------------
65 CFSI_IDB_IP = 'influxdb_ip_address'
66 CFSI_IDB_PORT = 'influxdb_port'
67 CFSI_IDB_DB_NAME = 'influxdb_db_name'
68
69
70 # ------------------------------------------------------
71 # Packet generator section parameters
72 # ------------------------------------------------------
73 CFSP_PACKET_GENERATOR = 'packet_generator'
74 CFSP_DPDK_PKTGEN_DIRECTORY = 'pktgen_directory'
75 CFSP_DPDK_DPDK_DIRECTORY = 'dpdk_directory'
76 CFSP_DPDK_PROGRAM_NAME = 'program_name'
77 CFSP_DPDK_COREMASK = 'coremask'
78 CFSP_DPDK_MEMORY_CHANNEL = 'memory_channels'
79 CFSP_DPDK_BUS_SLOT_NIC_1 = 'bus_slot_nic_1'
80 CFSP_DPDK_BUS_SLOT_NIC_2 = 'bus_slot_nic_2'
81 CFSP_DPDK_NAME_IF_1 = 'name_if_1'
82 CFSP_DPDK_NAME_IF_2 = 'name_if_2'
83
84
85 # ------------------------------------------------------
86 # Supported Packet generators
87 # ------------------------------------------------------
88 CFSP_PG_NONE = 'none'
89 CFSP_PG_DPDK = 'dpdk_pktgen'
90
91
92 # ------------------------------------------------------
93 # OpenStack section variables
94 # ------------------------------------------------------
95 CFSO_IP_CONTROLLER = 'ip_controller'
96 CFSO_HEAT_URL = 'heat_url'
97 CFSO_USER = 'user'
98 CFSO_PASSWORD = 'password'
99 CFSO_AUTH_URI = 'auth_uri'
100 CFSO_PROJECT = 'project'