tdc_config.py 763 B

12345678910111213141516171819202122232425262728293031323334
  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. }
  19. ENVIR = { }
  20. # put customizations in tdc_config_local.py
  21. try:
  22. from tdc_config_local import *
  23. except ImportError as ie:
  24. pass
  25. try:
  26. NAMES.update(EXTRA_NAMES)
  27. except NameError as ne:
  28. pass