mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
Trace through circuits to get to the real endpoint
This commit is contained in:
parent
ba07bcfbba
commit
1d1af47cb4
@ -2672,8 +2672,8 @@ class Cable(ChangeLoggedModel):
|
|||||||
Traverse both ends of a cable path and return its connected endpoints. Note that one or both endpoints may be
|
Traverse both ends of a cable path and return its connected endpoints. Note that one or both endpoints may be
|
||||||
None.
|
None.
|
||||||
"""
|
"""
|
||||||
a_path = self.termination_b.trace()
|
a_path = self.termination_b.trace(follow_circuits=True)
|
||||||
b_path = self.termination_a.trace()
|
b_path = self.termination_a.trace(follow_circuits=True)
|
||||||
|
|
||||||
# Determine overall path status (connected or planned)
|
# Determine overall path status (connected or planned)
|
||||||
if self.status == CONNECTION_STATUS_PLANNED:
|
if self.status == CONNECTION_STATUS_PLANNED:
|
||||||
|
Loading…
Reference in New Issue
Block a user