Skip to content

Commit

Permalink
fix provider network error (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreng authored Sep 28, 2023
1 parent f28623b commit bec301e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netbox_topology_views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from itertools import chain

from utilities.htmx import is_htmx
from circuits.models import Circuit, CircuitTermination
from circuits.models import Circuit, CircuitTermination, ProviderNetwork
from dcim.models import (
Cable,
CableTermination,
Expand Down Expand Up @@ -374,7 +374,8 @@ def get_topology_data(
)
for path_complete_interface in path_complete_interfaces:
for connected_endpoint in path_complete_interface.connected_endpoints:
device_ids.append(connected_endpoint.device.id)
if type(connected_endpoint) != ProviderNetwork:
device_ids.append(connected_endpoint.device.id)

if show_circuit:
circuit_terminations = CircuitTermination.objects.filter(
Expand Down

0 comments on commit bec301e

Please sign in to comment.