tdc_config.py 845 B

123456789101112131415161718192021222324252627282930313233343536
  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. # Name of veth devices to be created for the namespace
  12. 'DEV0': 'v0p0',
  13. 'DEV1': 'v0p1',
  14. 'DEV2': '',
  15. 'BATCH_FILE': './batch.txt',
  16. # Name of the namespace to use
  17. 'NS': 'tcut',
  18. # Directory containing eBPF test programs
  19. 'EBPFDIR': './bpf'
  20. }
  21. ENVIR = { }
  22. # put customizations in tdc_config_local.py
  23. try:
  24. from tdc_config_local import *
  25. except ImportError as ie:
  26. pass
  27. try:
  28. NAMES.update(EXTRA_NAMES)
  29. except NameError as ne:
  30. pass