From 1b36b9e7df90dfb732ddb9e076118fb5a673822d Mon Sep 17 00:00:00 2001 From: mattieserver <3049868+mattieserver@users.noreply.github.com> Date: Wed, 3 Aug 2022 10:59:02 +0200 Subject: [PATCH] added extra check (#135) --- netbox_topology_views/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netbox_topology_views/views.py b/netbox_topology_views/views.py index c34270a..345017e 100644 --- a/netbox_topology_views/views.py +++ b/netbox_topology_views/views.py @@ -127,6 +127,11 @@ def get_topology_data(queryset, hide_unconnected, intermediate_dev_role_ids, end if path_destination is not None and path_destination.provider_network is None: # ProviderNetwork not supported at the moment # $path_destination.cable would be none : there is no cable between a CircuitTermination and ProviderNetwork + + if not hasattr(link.termination_b, 'device'): + #CircuitTermination B Missing Device + continue + origin_device = link.termination_b.device destination_device = path_destination.cable.termination_b.device