aboutsummaryrefslogtreecommitdiffstats
path: root/tools/netbox/scripts/create-switch/create-switch.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/netbox/scripts/create-switch/create-switch.py')
-rw-r--r--tools/netbox/scripts/create-switch/create-switch.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/netbox/scripts/create-switch/create-switch.py b/tools/netbox/scripts/create-switch/create-switch.py
index 36477a2..0067200 100644
--- a/tools/netbox/scripts/create-switch/create-switch.py
+++ b/tools/netbox/scripts/create-switch/create-switch.py
@@ -198,8 +198,7 @@ class CreateSwitch(Script):
termination_type=interface_type,
)
cable = Cable.objects.get(id=cable.id)
- # TODO: fix cables being 'connected'
- #cable.a_terminations = [a]
- #cable.b_terminations = [b]
+ # https://github.com/netbox-community/netbox/discussions/10199
+ cable._terminations_modified = True
cable.save()
self.log_success(f"Cabled {data['destination_device']} {a_interface} to {switch} {b_interface}")