aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/vTC/apexlake/experimental_framework/constants/conf_file_sections.py
blob: ce46d800ac816908793753e2f856acf36b82600d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright (c) 2015 Intel Research and Development Ireland Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


# ------------------------------------------------------
# Configuration File Sections
# ------------------------------------------------------
CFS_PKTGEN = 'PacketGen'
CFS_GENERAL = 'General'
CFS_OPENSTACK = 'OpenStack'
CFS_EXPERIMENT_VNF = 'Experiment-VNF'
CFS_EXPERIMENT_GENERIC = 'Experiment-generic'
CFS_TESTCASE_PARAMETERS = 'Testcase-parameters'
CFS_DEPLOYMENT_PARAMETERS = 'Deployment-parameters'
CFS_INFLUXDB = 'InfluxDB'


def get_sections():
    return [
        CFS_PKTGEN,
        CFS_GENERAL,
        CFS_OPENSTACK,
        CFS_EXPERIMENT_VNF,
        # CFS_EXPERIMENT_GENERIC,
        CFS_TESTCASE_PARAMETERS,
        CFS_DEPLOYMENT_PARAMETERS,
        CFS_INFLUXDB
        # Add here eventually new sections in configuration file ...
    ]


def get_sections_api():
    return [
        CFS_PKTGEN,
        CFS_GENERAL,
        CFS_INFLUXDB,
        CFS_OPENSTACK
        # Add here eventually new sections in configuration file ...
    ]

# ------------------------------------------------------
# General section parameters
# ------------------------------------------------------
CFSG_ITERATIONS = 'iterations'
CFSG_TEMPLATE_DIR = 'template_dir'
CFSG_TEMPLATE_NAME = 'template_base_name'
CFSG_RESULT_DIRECTORY = 'results_directory'
CFSG_BENCHMARKS = 'benchmarks'
CFSG_DEBUG = 'debug'


# ------------------------------------------------------
# InfluxDB
# ------------------------------------------------------
CFSI_IDB_IP = 'influxdb_ip_address'
CFSI_IDB_PORT = 'influxdb_port'
CFSI_IDB_DB_NAME = 'influxdb_db_name'


# ------------------------------------------------------
# Packet generator section parameters
# ------------------------------------------------------
CFSP_PACKET_GENERATOR = 'packet_generator'
CFSP_DPDK_PKTGEN_DIRECTORY = 'pktgen_directory'
CFSP_DPDK_DPDK_DIRECTORY = 'dpdk_directory'
CFSP_DPDK_PROGRAM_NAME = 'program_name'
CFSP_DPDK_COREMASK = 'coremask'
CFSP_DPDK_MEMORY_CHANNEL = 'memory_channels'
CFSP_DPDK_BUS_SLOT_NIC_1 = 'bus_slot_nic_1'
CFSP_DPDK_BUS_SLOT_NIC_2 = 'bus_slot_nic_2'
CFSP_DPDK_NAME_IF_1 = 'name_if_1'
CFSP_DPDK_NAME_IF_2 = 'name_if_2'


# ------------------------------------------------------
# Supported Packet generators
# ------------------------------------------------------
CFSP_PG_NONE = 'none'
CFSP_PG_DPDK = 'dpdk_pktgen'


# ------------------------------------------------------
# OpenStack section variables
# ------------------------------------------------------
CFSO_IP_CONTROLLER = 'ip_controller'
CFSO_HEAT_URL = 'heat_url'
CFSO_USER = 'user'
CFSO_PASSWORD = 'password'
CFSO_AUTH_URI = 'auth_uri'
CFSO_PROJECT = 'project'
CFSO_RELEASE = 'release'