1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

First stab at cable path tracing and automatic endpoint connections

This commit is contained in:
Jeremy Stretch
2018-10-24 16:17:01 -04:00
parent 47c523a40b
commit 35f80f5085
4 changed files with 56 additions and 8 deletions

View File

@@ -212,6 +212,13 @@ class ObjectEditView(GetReturnURLMixin, View):
obj_created = not form.instance.pk
obj = form.save()
print("Connecting {} {} to {} {}".format(
obj.termination_a.device,
obj.termination_a,
obj.termination_b.device,
obj.termination_b
))
msg = '{} {}'.format(
'Created' if obj_created else 'Modified',
self.model._meta.verbose_name