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

Add origins, destinations properties on CablePath

This commit is contained in:
jeremystretch
2022-05-13 15:05:38 -04:00
parent 3082c76ec6
commit 6ff2e55ce4
4 changed files with 53 additions and 28 deletions

View File

@ -64,5 +64,4 @@ def rebuild_paths(terminations):
with transaction.atomic():
for cp in cable_paths:
cp.delete()
origins = [path_node_to_object(node) for node in cp.path[0]]
create_cablepath(origins)
create_cablepath(cp.origins)