aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHåkon Solbjørg <hakon@solbj.org>2023-03-22 21:51:18 +0100
committerHåkon Solbjørg <hakon@solbj.org>2023-03-22 21:51:18 +0100
commita813536a120be9f6a89e89026426aff436dc5991 (patch)
tree60220e0f63fdbc5eb22dd319593ad6ea4b19eb0b
parent4ac9bbadf2f3489f5a4f165deb229f3659d57cba (diff)
feat(create-switch): Add log about how to sync to gondul
-rw-r--r--tools/netbox/scripts/create-switch/create-switch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/netbox/scripts/create-switch/create-switch.py b/tools/netbox/scripts/create-switch/create-switch.py
index d4eba1e..ee3196a 100644
--- a/tools/netbox/scripts/create-switch/create-switch.py
+++ b/tools/netbox/scripts/create-switch/create-switch.py
@@ -193,3 +193,5 @@ class CreateSwitch(Script):
cable._terminations_modified = True
cable.save()
self.log_success(f"Cabled {data['destination_device']} {a_interface} to {switch} {b_interface}")
+
+ self.log_success(f"To create this switch in Gondul you can <a href=\"/extras/scripts/netbox2gondul.Netbox2Gondul/?device={ switch.id }\">trigger an update immediately</a> or <a href=\"{switch.get_absolute_url()}\">view the device</a> first and trigger an update from there.")