1""" 2# SPDX-License-Identifier: GPL-2.0 3tdc_config.py - tdc user-specified values 4 5Copyright (C) 2017 Lucas Bates <lucasb@mojatatu.com> 6""" 7 8# Dictionary containing all values that can be substituted in executable 9# commands. 10NAMES = { 11 # Substitute your own tc path here 12 'TC': '/sbin/tc', 13 # Name of veth devices to be created for the namespace 14 'DEV0': 'v0p0', 15 'DEV1': 'v0p1', 16 'DEV2': '', 17 'BATCH_FILE': './batch.txt', 18 'BATCH_DIR': 'tmp', 19 # Length of time in seconds to wait before terminating a command 20 'TIMEOUT': 12, 21 # Name of the namespace to use 22 'NS': 'tcut', 23 # Directory containing eBPF test programs 24 'EBPFDIR': './bpf' 25 } 26 27 28ENVIR = { } 29 30# put customizations in tdc_config_local.py 31try: 32 from tdc_config_local import * 33except ImportError as ie: 34 pass 35 36try: 37 NAMES.update(EXTRA_NAMES) 38except NameError as ne: 39 pass 40