Skip to content

Commit 4b9c5a2

Browse files
Fix for VLAN by Filter (#73)
Wrong type could cause improper handling for VLAN IDs higher than 10.
1 parent ba58818 commit 4b9c5a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nextbox_ui_plugin/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def get_vlan_topology(nb_devices_qs, vlans):
235235
device_roles = set()
236236
all_device_tags = set()
237237
multi_cable_connections = []
238-
vlan = VLAN.objects.get(id=vlans[0])
238+
vlan = VLAN.objects.get(id=vlans)
239239
interfaces = vlan.get_interfaces()
240240
filtred_devices = [d.id for d in nb_devices_qs]
241241
filtred_interfaces = []

0 commit comments

Comments
 (0)