From 55ca0adcf0037658992be1b5fbdcfac4c95acc99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Chac=C3=B3n?= Date: Thu, 2 Mar 2023 10:24:58 -0700 Subject: [PATCH] Update integrationSplynx.py --- src/integrationSplynx.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/integrationSplynx.py b/src/integrationSplynx.py index 317156fa..452d2d07 100644 --- a/src/integrationSplynx.py +++ b/src/integrationSplynx.py @@ -96,15 +96,16 @@ def createShaper(): ipv4 = ipForRouter[routerID] elif serviceJson['taking_ipv4'] == 1: ipv4 = serviceJson['ipv4'] - # If we recieve blank ipv4, print entire data structure so we cna see what's happening - if ipv4 == '': - print(serviceJson) # If not "Taking IPv6" (Router will assign IP), then use router's set IP if serviceJson['taking_ipv6'] == 0: ipv6 = '' elif serviceJson['taking_ipv6'] == 1: ipv6 = serviceJson['ipv6'] - + + # If we recieve blank ipv4, print entire data structure so we cna see what's happening + if ipv4 == '': + print(serviceJson) + device = NetworkNode( id=combinedId+"_d" + str(serviceJson["id"]), displayName=serviceJson["description"],