Skip to content

Commit

Permalink
Fix for VLAN by Filter (#73)
Browse files Browse the repository at this point in the history
Wrong type could cause improper handling for VLAN IDs higher than 10.
  • Loading branch information
renatoalmeidaoliveira authored Oct 1, 2021
1 parent ba58818 commit 4b9c5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nextbox_ui_plugin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def get_vlan_topology(nb_devices_qs, vlans):
device_roles = set()
all_device_tags = set()
multi_cable_connections = []
vlan = VLAN.objects.get(id=vlans[0])
vlan = VLAN.objects.get(id=vlans)
interfaces = vlan.get_interfaces()
filtred_devices = [d.id for d in nb_devices_qs]
filtred_interfaces = []
Expand Down

0 comments on commit 4b9c5a2

Please sign in to comment.