aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/vTC/apexlake/experimental_framework/constants/conf_file_sections.py
blob: eed00bce06ea20cc575b66b45c222aa74de5383a (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
# 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'


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


def get_sections_api():
    return [
        CFS_PKTGEN,
        CFS_GENERAL,
        # TODO: TO BE REMOVED AFTER TESTING THE API
        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'


# ------------------------------------------------------
# Packet generator section parameters
# ------------------------------------------------------
CFSP_PACKET_GENERATOR = 'packet_generator'
CFSP_DPDK_DIRECTORY = 'directory'
CFSP_DPDK_PROGRAM_NAME = 'program_name'
CFSP_DPDK_COREMASK = 'coremask'
CFSP_DPDK_MEMORY_CHANNEL = 'memory_channels'
CFSP_DPDK_CORE_NICS = 'core_nics'


# ------------------------------------------------------
# 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'