aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHåkon Solbjørg <hakon@solbj.org>2023-04-01 13:53:31 +0200
committerGitHub <noreply@github.com>2023-04-01 13:53:31 +0200
commitedd6fa640b29e3f31434f133d83aa9c96ee294ba (patch)
tree0360f2ca63ad8e4954212bea24069f325d11636a /tools
parentc7beda69ca759f0aaa4620bdc39ad58b44c605ca (diff)
fix(netbox2gondul): Set .0 on distro phy port
Diffstat (limited to 'tools')
-rw-r--r--tools/netbox/scripts/netbox2gondul/netbox2gondul.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
index 04d8f03..42850ae 100644
--- a/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
+++ b/tools/netbox/scripts/netbox2gondul/netbox2gondul.py
@@ -171,7 +171,7 @@ class Netbox2Gondul(Script):
# "community": "", # Not implemented
"tags": [tag.slug for tag in list(device.tags.all())],
"distro_name": distro.name,
- "distro_phy_port": distro_interface.name, # TODO: always .0 ?
+ "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,
"mgmt_vlan": mgmt_vlan_name,