Trace through circuits to get to the real endpoint

This commit is contained in:
Sander Steffann 2019-06-16 23:19:12 +02:00
parent ba07bcfbba
commit 1d1af47cb4

View File

@ -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: