From 1d1af47cb48dcc8fdcd4c54ce687a45b26bfea87 Mon Sep 17 00:00:00 2001 From: Sander Steffann Date: Sun, 16 Jun 2019 23:19:12 +0200 Subject: [PATCH] Trace through circuits to get to the real endpoint --- netbox/dcim/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/models.py b/netbox/dcim/models.py index 7541726b2..eeb52b874 100644 --- a/netbox/dcim/models.py +++ b/netbox/dcim/models.py @@ -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 None. """ - a_path = self.termination_b.trace() - b_path = self.termination_a.trace() + a_path = self.termination_b.trace(follow_circuits=True) + b_path = self.termination_a.trace(follow_circuits=True) # Determine overall path status (connected or planned) if self.status == CONNECTION_STATUS_PLANNED: