From 1c23dc0a49d8ec4cfd67c96411e7193cc786c05d Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Fri, 7 Aug 2020 11:35:17 -0700 Subject: [PATCH] longevity: Fix station count comparison. Evidently, cannot compare a string to an int and get expected result, so cast to int explicitly. Signed-off-by: Ben Greear --- py-scripts/test_l3_longevity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-scripts/test_l3_longevity.py b/py-scripts/test_l3_longevity.py index 70060777..9245818b 100755 --- a/py-scripts/test_l3_longevity.py +++ b/py-scripts/test_l3_longevity.py @@ -144,7 +144,7 @@ class L3VariableTimeLongevity(LFCliBase): sta_count = m.group(1) print("AP line: %s"%(line)) print("sta-count: %s"%(sta_count)) - if (sta_count != self.total_stas): + if (int(sta_count) != int(self.total_stas)): print("WARNING: Cisco Controller reported %s stations, should be %s"%(sta_count, self.total_stas))