aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHåkon Solbjørg <hakon@solbj.org>2023-04-06 21:21:14 +0200
committerHåkon Solbjørg <hakon@solbj.org>2023-04-06 21:21:14 +0200
commit42e8cc1ce7842f7780716d7c863b80babea0a5c4 (patch)
tree3cb15422cfe2b62f53a60effe6fba2f38ecd6635 /tools
parent61963cf82fbf2aac898dcfea4b203f2ff7b55f09 (diff)
hack(netbox2gondul): Don't send distro name for APs as that breaks templating
Diffstat (limited to 'tools')
-rw-r--r--tools/netbox/scripts/netbox2gondul/netbox2gondul.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
index 415d90c..99f3baa 100644
--- a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
+++ b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
@@ -196,7 +196,8 @@ class Netbox2Gondul(Script):
return {
# "community": "", # Not implemented
"tags": [tag.slug for tag in list(device.tags.all())],
- "distro_name": distro.name,
+ # Ultrahack: Remove distro name because that breaks templating
+ "distro_name": distro.name if traffic_vlan != WIFI_TRAFFIC_VLAN else None,
"distro_phy_port": f"{distro_interface.name}.0",
"mgmt_v4_addr": str(device.primary_ip4.address.ip) if device.primary_ip4 is not None else None,
"mgmt_v6_addr": str(device.primary_ip6.address.ip) if device.primary_ip6 is not None else None,