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 <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2020-08-07 11:35:17 -07:00
parent f0dd5a389b
commit 1c23dc0a49

View File

@@ -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))