mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Add infrastructure to the generated topology. Commit for testing.
This commit is contained in:
@@ -359,14 +359,17 @@ class NetworkGraph:
|
||||
# Builds ShapedDevices.csv from the network tree.
|
||||
circuits = []
|
||||
for (i, node) in enumerate(self.nodes):
|
||||
if node.type == NodeType.client:
|
||||
#if node.type == NodeType.client:
|
||||
parent = self.nodes[node.parentIndex].displayName
|
||||
if parent == "Shaper Root": parent = ""
|
||||
|
||||
if circuitNameUseAddress:
|
||||
displayNameToUse = node.address
|
||||
else:
|
||||
displayNameToUse = node.customerName
|
||||
if node.type == NodeType.client:
|
||||
displayNameToUse = node.displayName
|
||||
else:
|
||||
displayNameToUse = node.customerName + " (" + nodeTypeToString(node.type) + ")"
|
||||
circuit = {
|
||||
"id": node.id,
|
||||
"name": displayNameToUse,
|
||||
|
||||
@@ -433,6 +433,7 @@ def buildFullGraph():
|
||||
match type:
|
||||
case "site":
|
||||
nodeType = NodeType.site
|
||||
customerName = name
|
||||
if name in siteBandwidth:
|
||||
# Use the CSV bandwidth values
|
||||
download = siteBandwidth[name]["download"]
|
||||
|
||||
Reference in New Issue
Block a user