eed00bce06ea20cc575b66b45c222aa74de5383a
[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
27
28 def get_sections():
29     return [
30         CFS_PKTGEN,
31         CFS_GENERAL,
32         CFS_OPENSTACK,
33         CFS_EXPERIMENT_VNF,
34         CFS_EXPERIMENT_GENERIC,
35         CFS_TESTCASE_PARAMETERS,
36         CFS_DEPLOYMENT_PARAMETERS
37         # Add here eventually new sections in configuration file ...
38     ]
39
40
41 def get_sections_api():
42     return [
43         CFS_PKTGEN,
44         CFS_GENERAL,
45         # TODO: TO BE REMOVED AFTER TESTING THE API
46         CFS_OPENSTACK
47         # Add here eventually new sections in configuration file ...
48     ]
49
50 # ------------------------------------------------------
51 # General section parameters
52 # ------------------------------------------------------
53 CFSG_ITERATIONS = 'iterations'
54 CFSG_TEMPLATE_DIR = 'template_dir'
55 CFSG_TEMPLATE_NAME = 'template_base_name'
56 CFSG_RESULT_DIRECTORY = 'results_directory'
57 CFSG_BENCHMARKS = 'benchmarks'
58
59
60 # ------------------------------------------------------
61 # Packet generator section parameters
62 # ------------------------------------------------------
63 CFSP_PACKET_GENERATOR = 'packet_generator'
64 CFSP_DPDK_DIRECTORY = 'directory'
65 CFSP_DPDK_PROGRAM_NAME = 'program_name'
66 CFSP_DPDK_COREMASK = 'coremask'
67 CFSP_DPDK_MEMORY_CHANNEL = 'memory_channels'
68 CFSP_DPDK_CORE_NICS = 'core_nics'
69
70
71 # ------------------------------------------------------
72 # Supported Packet generators
73 # ------------------------------------------------------
74 CFSP_PG_NONE = 'none'
75 CFSP_PG_DPDK = 'dpdk_pktgen'
76
77
78 # ------------------------------------------------------
79 # OpenStack section variables
80 # ------------------------------------------------------
81 CFSO_IP_CONTROLLER = 'ip_controller'
82 CFSO_HEAT_URL = 'heat_url'
83 CFSO_USER = 'user'
84 CFSO_PASSWORD = 'password'
85 CFSO_AUTH_URI = 'auth_uri'
86 CFSO_PROJECT = 'project'