tdc_config.py 1.02 KB
Newer Older
1
"""
2
# SPDX-License-Identifier: GPL-2.0
3
4
5
6
7
8
9
10
11
12
tdc_config.py - tdc user-specified values

Copyright (C) 2017 Lucas Bates <lucasb@mojatatu.com>
"""

# Dictionary containing all values that can be substituted in executable
# commands.
NAMES = {
          # Substitute your own tc path here
          'TC': '/sbin/tc',
13
14
          # Substitute your own ip path here
          'IP': '/sbin/ip',
15
16
17
          # Name of veth devices to be created for the namespace
          'DEV0': 'v0p0',
          'DEV1': 'v0p1',
18
19
          'DEV2': '',
          'BATCH_FILE': './batch.txt',
20
          'BATCH_DIR': 'tmp',
21
22
          # Length of time in seconds to wait before terminating a command
          'TIMEOUT': 12,
23
          # Name of the namespace to use
24
25
26
          'NS': 'tcut',
          # Directory containing eBPF test programs
          'EBPFDIR': './bpf'
27
        }
28
29
30
31
32
33
34
35
36
37
38
39
40
41


ENVIR = { }

# put customizations in tdc_config_local.py
try:
    from tdc_config_local import *
except ImportError as ie:
    pass

try:
    NAMES.update(EXTRA_NAMES)
except NameError as ne:
    pass