mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Extend cable tracing to support terminations to different parent objects
This commit is contained in:
@@ -444,9 +444,8 @@ class CablePath(models.Model):
|
||||
|
||||
while terminations:
|
||||
|
||||
# Terminations must all be of the same type and belong to the same parent
|
||||
# Terminations must all be of the same type
|
||||
assert all(isinstance(t, type(terminations[0])) for t in terminations[1:])
|
||||
assert all(t.parent_object == terminations[0].parent_object for t in terminations[1:])
|
||||
|
||||
# Step 1: Record the near-end termination object(s)
|
||||
path.append([
|
||||
|
||||
Reference in New Issue
Block a user