From b422a926def7c58eb19fd6aecf73d656f8a0f161 Mon Sep 17 00:00:00 2001 From: Seb Harrington Date: Fri, 3 May 2024 11:03:44 +0100 Subject: [PATCH] Remove VLAN --- netbox_device_map/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox_device_map/views.py b/netbox_device_map/views.py index 823bdd6..ad4567a 100644 --- a/netbox_device_map/views.py +++ b/netbox_device_map/views.py @@ -26,7 +26,7 @@ class MapView(PermissionRequiredMixin, View): form = self.form(request.GET) if form.is_valid(): interfaces = Interface.objects.all() - vlan = form.cleaned_data['vlan'] + #vlan = form.cleaned_data['vlan'] #interfaces = interfaces.filter(Q(untagged_vlan=vlan) | Q(tagged_vlans=vlan)) devices = Device.objects.filter(interfaces__in=interfaces).distinct() @@ -37,7 +37,7 @@ class MapView(PermissionRequiredMixin, View): non_geolocated_devices = set(devices) - set(geolocated_devices.keys()) map_data = configure_leaflet_map("geomap", geolocated_devices, form.cleaned_data['calculate_connections']) - map_data['vlan'] = vlan.id + #map_data['vlan'] = vlan.id return render(request, self.template_name, context=dict( filter_form=form, map_data=map_data, non_geolocated_devices=non_geolocated_devices ))