1 # Copyright (c) 2015 Intel Research and Development Ireland Ltd.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
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'
34 CFS_EXPERIMENT_GENERIC,
35 CFS_TESTCASE_PARAMETERS,
36 CFS_DEPLOYMENT_PARAMETERS
37 # Add here eventually new sections in configuration file ...
41 def get_sections_api():
45 # TODO: TO BE REMOVED AFTER TESTING THE API
47 # Add here eventually new sections in configuration file ...
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'
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'
71 # ------------------------------------------------------
72 # Supported Packet generators
73 # ------------------------------------------------------
75 CFSP_PG_DPDK = 'dpdk_pktgen'
78 # ------------------------------------------------------
79 # OpenStack section variables
80 # ------------------------------------------------------
81 CFSO_IP_CONTROLLER = 'ip_controller'
82 CFSO_HEAT_URL = 'heat_url'
84 CFSO_PASSWORD = 'password'
85 CFSO_AUTH_URI = 'auth_uri'
86 CFSO_PROJECT = 'project'