mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Ensure UISP integration does not overwrite existing network.json
This commit is contained in:
parent
903dbc9b13
commit
061adc4bdf
@ -75,7 +75,10 @@ def createTree(sites,accessPoints,bandwidthDL,bandwidthUL,siteParentDict,siteIDt
|
||||
return currentNode
|
||||
|
||||
def createNetworkJSON():
|
||||
print("Creating network.json")
|
||||
if os.path.isfile("network.json"):
|
||||
print("network.json already exists. Leaving in place.")
|
||||
else:
|
||||
print("Generating network.json")
|
||||
bandwidthDL = {}
|
||||
bandwidthUL = {}
|
||||
url = UISPbaseURL + "/nms/api/v2.1/sites?type=site"
|
||||
|
Loading…
Reference in New Issue
Block a user