Fix bandwidth in cases where clients are directly connected to site

ensure a solid "rate" to prevent low priority in cases where clients are directly connected to top level Parent Nodes
This commit is contained in:
Robert Chacón 2022-09-11 09:59:08 -06:00 committed by GitHub
parent 668441a624
commit 0b45471dce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,6 +239,9 @@ def createShaper():
if AP == 'none':
try:
AP = siteIDtoName[uispClientSite['identification']['parent']['id']]
# We have to ensure a solid "rate" to prevent low priority in cases where clients are directly connected to top level Parent Nodes
minSpeedDown = round(maxSpeedDown*.95)
minSpeedUp = round(maxSpeedDown*.95)
except:
AP = 'none'
devicesToImport.append((uispClientSiteID, address, '', deviceName, AP, deviceMAC, ipv4, ipv6, str(minSpeedDown), str(minSpeedUp), str(maxSpeedDown),str(maxSpeedUp),''))