1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
10 slave_project_path = "/opt/esp-atf"
11 VSTFCPATH = "/opt/vstf"
12 sockaddr = VSTFCPATH + "/vstf.socket"
13 vstf_pid = VSTFCPATH + "/vstf-server.pid"
16 # the message's len must be < 9999999999
20 # all command run timeout
27 MEMORY_INFO = "MEMORY INFO"
30 TOOLS = ["pktgen", "netperf", "qperf", "netmap"]
31 OPERATIONS = ["start", "stop", "restart"]
32 ACTIONS = ["send", "receive"]
33 PROTOCOLS = ["tcp_lat", "udp_lat", "tcp_bw", "udp_bw"]
34 TPROTOCOLS = ["tcp", "udp"]
35 PROVIDERS = ["rdp", "fastlink", "l2switch", None]
36 TTYPES = ["throughput", "latency", "frameloss"]
37 SCENARIOS = ["Ti", "Tn", "Tnv", "Tu"]
44 TIME_FORMAT = "%Y-%m-%d %H:%M:%S"
45 TIME_FORMAT2 = "%Y/%m/%d %H:%M:%S"
46 TIME_FORMAT3 = "%Y%m%d_%H%M%S"
47 REPORT_DEFAULTS = "/tmp"
51 "Tn-1": {"senders": [0], "receivers": [-1], "flows": 1},
52 "Tn-2": {"senders": [0, -1], "receivers": [-1, 0], "flows": 2},
53 # unidirection with vxlan
54 "Tn-3": {"senders": [0], "receivers": [-1], "flows": 1},
55 "Tn-4": {"senders": [0, -1], "receivers": [-1, 0], "flows": 2},
57 "Tnv-1": {"senders": [0], "receivers": [-1], "flows": 1},
58 "Tnv-2": {"senders": [0, -1], "receivers": [-1, 0], "flows": 2},
59 # unidirection with vxlan
60 "Tnv-3": {"senders": [0], "receivers": [-1], "flows": 1},
61 "Tnv-4": {"senders": [0, -1], "receivers": [-1, 0], "flows": 2},
63 "Ti-1": {"senders": [0], "receivers": [-1], "flows": 1},
64 "Ti-2": {"senders": [-1], "receivers": [0], "flows": 1},
65 "Ti-3": {"senders": [0, -1], "receivers": [-1, 0], "flows": 2},
66 "Ti-4": {"senders": [0], "receivers": [-1], "flows": 1},
67 "Ti-5": {"senders": [-1], "receivers": [0], "flows": 1},
68 "Ti-6": {"senders": [0, -1], "receivers": [-1, 0], "flows": 2},
70 "Tu-1": {"senders": [0], "receivers": [-1], "flows": 1},
71 "Tu-2": {"senders": [-1], "receivers": [0], "flows": 1},
72 "Tu-3": {"senders": [0, -1], "receivers": [-1, 0], "flows": 2},
73 "Tu-4": {"senders": [0], "receivers": [-1], "flows": 1},
74 "Tu-5": {"senders": [-1], "receivers": [0], "flows": 1},
75 "Tu-6": {"senders": [0, -1], "receivers": [-1, 0], "flows": 2}