From 2e9f96552fcabbaece013860bf1f85b22567f7ca Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Thu, 14 Dec 2023 10:08:03 -0600 Subject: [PATCH] Patch integrationUISP and integrationCommon to run successfully. The exception CPEs system still needs fixing. --- src/integrationCommon.py | 6 ++++-- src/integrationUISP.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/integrationCommon.py b/src/integrationCommon.py index f5e04547..805e1500 100644 --- a/src/integrationCommon.py +++ b/src/integrationCommon.py @@ -149,8 +149,10 @@ class NetworkGraph: # If a site is excluded (via excludedSites in ispConfig) # it won't be added if not node.displayName in self.excludeSites: - if node.displayName in self.exceptionCPEs.keys(): - node.parentId = self.exceptionCPEs[node.displayName] + # TODO: Fixup exceptionCPE handling + #print(self.excludeSites) + #if node.displayName in self.exceptionCPEs.keys(): + # node.parentId = self.exceptionCPEs[node.displayName] self.nodes.append(node) def replaceRootNode(self, node: NetworkNode) -> None: diff --git a/src/integrationUISP.py b/src/integrationUISP.py index cad47376..d15fabac 100644 --- a/src/integrationUISP.py +++ b/src/integrationUISP.py @@ -405,7 +405,7 @@ def buildFullGraph(): id = site['identification']['id'] name = site['identification']['name'] type = site['identification']['type'] - download = generated_pn_download_mbps + download = generated_pn_download_mbps() upload = generated_pn_upload_mbps() address = "" customerName = "" -- knotmirror 0.0.1