Back to home page

OSCL-LXR

 
 

    


0001 """
0002 # SPDX-License-Identifier: GPL-2.0
0003 tdc_config.py - tdc user-specified values
0004 
0005 Copyright (C) 2017 Lucas Bates <lucasb@mojatatu.com>
0006 """
0007 
0008 # Dictionary containing all values that can be substituted in executable
0009 # commands.
0010 NAMES = {
0011           # Substitute your own tc path here
0012           'TC': '/sbin/tc',
0013           # Substitute your own ip path here
0014           'IP': '/sbin/ip',
0015           # Name of veth devices to be created for the namespace
0016           'DEV0': 'v0p0',
0017           'DEV1': 'v0p1',
0018           'DEV2': '',
0019           'DUMMY': 'dummy1',
0020       'ETH': 'eth0',
0021           'BATCH_FILE': './batch.txt',
0022           'BATCH_DIR': 'tmp',
0023           # Length of time in seconds to wait before terminating a command
0024           'TIMEOUT': 24,
0025           # Name of the namespace to use
0026           'NS': 'tcut',
0027           # Directory containing eBPF test programs
0028           'EBPFDIR': './'
0029         }
0030 
0031 
0032 ENVIR = { }
0033 
0034 # put customizations in tdc_config_local.py
0035 try:
0036     from tdc_config_local import *
0037 except ImportError as ie:
0038     pass
0039 
0040 try:
0041     NAMES.update(EXTRA_NAMES)
0042 except NameError as ne:
0043     pass