mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #2691: Cable trace should follow circuits
This commit is contained in:
@ -6,6 +6,7 @@ v2.5.2 (FUTURE)
|
|||||||
|
|
||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
|
* [#2691](https://github.com/digitalocean/netbox/issues/2691) - Cable trace should follow circuits
|
||||||
* [#2698](https://github.com/digitalocean/netbox/issues/2698) - Remove pagination restriction on bulk component creation for devices/VMs
|
* [#2698](https://github.com/digitalocean/netbox/issues/2698) - Remove pagination restriction on bulk component creation for devices/VMs
|
||||||
* [#2707](https://github.com/digitalocean/netbox/issues/2707) - Correct permission evaluation for circuit termination cabling
|
* [#2707](https://github.com/digitalocean/netbox/issues/2707) - Correct permission evaluation for circuit termination cabling
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class CableTraceMixin(object):
|
|||||||
# Initialize the path array
|
# Initialize the path array
|
||||||
path = []
|
path = []
|
||||||
|
|
||||||
for near_end, cable, far_end in obj.trace():
|
for near_end, cable, far_end in obj.trace(follow_circuits=True):
|
||||||
|
|
||||||
# Serialize each object
|
# Serialize each object
|
||||||
serializer_a = get_serializer_for_model(near_end, prefix='Nested')
|
serializer_a = get_serializer_for_model(near_end, prefix='Nested')
|
||||||
|
@ -140,7 +140,7 @@ class CableTermination(models.Model):
|
|||||||
if peer_port is None:
|
if peer_port is None:
|
||||||
return path
|
return path
|
||||||
|
|
||||||
next_segment = peer_port.trace(position)
|
next_segment = peer_port.trace(position, follow_circuits)
|
||||||
if next_segment is None:
|
if next_segment is None:
|
||||||
return path + [(peer_port, None, None)]
|
return path + [(peer_port, None, None)]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user