From 0b45471dcec69771dafcda75f2a49db89b67e8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Chac=C3=B3n?= Date: Sun, 11 Sep 2022 09:59:08 -0600 Subject: [PATCH] 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 --- v1.2/integrationUISP.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/v1.2/integrationUISP.py b/v1.2/integrationUISP.py index 45c6081f..e5a58a5f 100644 --- a/v1.2/integrationUISP.py +++ b/v1.2/integrationUISP.py @@ -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),''))