diff options
author | Vratko Polak <vrpolak@cisco.com> | 2019-08-13 10:20:26 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2019-08-14 10:20:33 +0000 |
commit | 74bdfde76393764485cfb4667d94589468261dd4 (patch) | |
tree | 1d4037bf4502f9e54dbfeaa5f9ffe226d0f66b4b /resources/libraries/python/Constants.py | |
parent | 8f41f1d040453d963440d8cc99fb2b957521120b (diff) |
Revert "Disable CRC checking at runtime"
Needed to verify CSIT expects the correct CRCs.
This reverts commit d541b2b7d99651b53bd21ff75cd5fdacf8472a98.
This reverts commit 2dd27f5a638b5231c0f074ca61e6b67fed9d1faf.
+ Some pylint related improvements since then.
+ Less and better documented caching to class fields.
+ Global kill switch in Constants.
Change-Id: Id459800744cd93c578eab9c2e84cb9528235b064
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/Constants.py')
-rw-r--r-- | resources/libraries/python/Constants.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py index 0473ca2090..c970d19027 100644 --- a/resources/libraries/python/Constants.py +++ b/resources/libraries/python/Constants.py @@ -109,6 +109,9 @@ class Constants(object): # Default path to VPP API socket. SOCKSVR_PATH = "/run/vpp/api.sock" + # Global "kill switch" for CRC checking during runtime. + CRC_MISMATCH_FAILS_TEST = True + # Mapping from NIC name to its bps limit. # TODO: Implement logic to lower limits to TG NIC or software. Or PCI. NIC_NAME_TO_LIMIT = { |