tdc_config.py 1.1 KB

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