Fix UISP Suspension Flat Network

This commit is contained in:
Robert Chacón 2024-03-24 11:48:01 -06:00 committed by GitHub
parent e36be12e4b
commit 825e87c4e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,10 +66,10 @@ def buildFlatGraph():
download = int(round(site['qos']['downloadSpeed']/1000000))
upload = int(round(site['qos']['uploadSpeed']/1000000))
if site['identification'] is not None and site['identification']['suspended'] is not None and site['identification']['suspended'] == True:
if uisp_suspended_strategy() == "ignore":
if uispSuspendedStrategy == "ignore":
print("WARNING: Site " + name + " is suspended")
continue
if uisp_suspended_strategy() == "slow":
if uispSuspendedStrategy == "slow":
print("WARNING: Site " + name + " is suspended")
download = 1
upload = 1