summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateful_tests
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-03-16 14:52:30 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-03-16 14:52:30 +0200
commit9518c16c5f10bef7a87b2237b635ea47ef5c183a (patch)
tree0dd5c64d765ffcb4eb098d7f2fc8395d846c12cc /scripts/automation/regression/stateful_tests
parent7d0f9e5efeae033151b5442b00c8055376de9c6b (diff)
regression: trex14 updated classification
Diffstat (limited to 'scripts/automation/regression/stateful_tests')
-rwxr-xr-xscripts/automation/regression/stateful_tests/trex_nbar_test.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_nbar_test.py b/scripts/automation/regression/stateful_tests/trex_nbar_test.py
index 74d0227b..1453c02b 100755
--- a/scripts/automation/regression/stateful_tests/trex_nbar_test.py
+++ b/scripts/automation/regression/stateful_tests/trex_nbar_test.py
@@ -26,20 +26,11 @@ class CTRexNbar_Test(CTRexGeneral_Test):
missmatchFlag = False
missmatchMsg = "NBAR classification contians a missmatch on the following protocols:"
fmt = '\n\t{0:15} | Expected: {1:>3.2f}%, Got: {2:>3.2f}%'
- noise_level = 0.045 # percents
+ noise_level = 0.045
for cl_intf in self.router.get_if_manager().get_if_list(if_type = IFType.Client):
client_intf = cl_intf.get_name()
- # removing noise classifications
- for key, value in test_classification[client_intf]['percentage'].items():
- if value <= noise_level:
- print 'Removing noise classification: %s' % key
- del test_classification[client_intf]['percentage'][key]
-
- if len(test_classification[client_intf]['percentage']) != (len(nbar_benchmark) + 1): # adding 'total' key to nbar_benchmark
- raise ClassificationMissmatchError ('The total size of classification result does not match the provided benchmark.')
-
for protocol, bench in nbar_benchmark.iteritems():
if protocol != 'total':
try: