xref: /linux/tools/testing/selftests/tc-testing/tdc_config.py (revision 22ac5ad4a7d4e201d19b7f04ce8d79346c80a34b)
1"""
2tdc_config.py - tdc user-specified values
3
4Copyright (C) 2017 Lucas Bates <lucasb@mojatatu.com>
5"""
6
7# Dictionary containing all values that can be substituted in executable
8# commands.
9NAMES = {
10          # Substitute your own tc path here
11          'TC': '/sbin/tc',
12          # Name of veth devices to be created for the namespace
13          'DEV0': 'v0p0',
14          'DEV1': 'v0p1',
15          'DEV2': '',
16          'BATCH_FILE': './batch.txt',
17          # Name of the namespace to use
18          'NS': 'tcut'
19        }
20
21
22ENVIR = { }
23
24# put customizations in tdc_config_local.py
25try:
26    from tdc_config_local import *
27except ImportError as ie:
28    pass
29
30try:
31    NAMES.update(EXTRA_NAMES)
32except NameError as ne:
33    pass
34