Solve PtMP issue bug

This commit is contained in:
Robert Chacón 2023-07-21 17:07:58 -06:00 committed by GitHub
parent ea883aebb8
commit fc7dd8aeb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,10 @@ try:
from ispConfig import ltu_capacity from ispConfig import ltu_capacity
except: except:
ltu_capacity = 0.90 ltu_capacity = 0.90
try:
from ispConfig import usePtMPasParent
except:
usePtMPasParent = False
def uispRequest(target): def uispRequest(target):
# Sends an HTTP request to UISP and returns the # Sends an HTTP request to UISP and returns the
@ -341,8 +345,9 @@ def findNodesBranchedOffPtMP(siteList, dataLinks, sites, rootSite, foundAirFiber
'upload': upload, 'upload': upload,
parent: apID parent: apID
} }
site['parent'] = apID if usePtMPasParent:
print('Site ' + name + ' will use PtMP AP as parent.') site['parent'] = apID
print('Site ' + name + ' will use PtMP AP as parent.')
return siteList, nodeOffPtMP return siteList, nodeOffPtMP
def handleMultipleInternetNodes(sites, dataLinks, uispSite): def handleMultipleInternetNodes(sites, dataLinks, uispSite):