mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Implement bug fix https://github.com/rchac/LibreQoS/pull/137
This commit is contained in:
@@ -32,10 +32,13 @@ def createTree(sites,accessPoints,bandwidthDL,bandwidthUL,siteParentDict,siteIDt
|
||||
thisOnesParent = None
|
||||
aps = []
|
||||
for ap in accessPoints:
|
||||
thisOnesParent = ap['device']['site']['name']
|
||||
if thisOnesParent == currentNodeName:
|
||||
if ap['device']['model'] in knownAPmodels:
|
||||
aps.append(ap['device']['name'])
|
||||
if ap['device']['site'] is None:
|
||||
print("Unable to read site information for: " + ap['device']['name'])
|
||||
else:
|
||||
thisOnesParent = ap['device']['site']['name']
|
||||
if thisOnesParent == currentNodeName:
|
||||
if ap['device']['model'] in knownAPmodels:
|
||||
aps.append(ap['device']['name'])
|
||||
apDict = {}
|
||||
for ap in aps:
|
||||
maxDL = min(bandwidthDL[ap],bandwidthDL[currentNodeName])
|
||||
|
||||
Reference in New Issue
Block a user