mirror of
https://github.com/drygdryg/netbox-plugin-device-map.git
synced 2024-11-30 06:00:52 +03:00
Remove filtering of devices
This commit is contained in:
parent
b422a926de
commit
69fbd6aef9
@ -61,8 +61,9 @@ class ConnectedCpeAjaxView(PermissionRequiredMixin, View):
|
|||||||
form = self.form(request.GET)
|
form = self.form(request.GET)
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
data = form.cleaned_data
|
data = form.cleaned_data
|
||||||
connected_devices_qs = get_connected_devices(device, vlan=data['vlan'])\
|
connected_devices_qs = get_connected_devices(device, vlan=data['vlan'])
|
||||||
.filter(device_role__name=plugin_settings['cpe_device_role']).order_by()
|
#\
|
||||||
|
# .filter(device_role__name=plugin_settings['cpe_device_role']).order_by()
|
||||||
connected_devices = [dict(id=d.id, name=d.name, url=d.get_absolute_url(), comments=d.comments)
|
connected_devices = [dict(id=d.id, name=d.name, url=d.get_absolute_url(), comments=d.comments)
|
||||||
for d in connected_devices_qs]
|
for d in connected_devices_qs]
|
||||||
# Sorting list of CPE devices by the sequence of integers contained in the comments
|
# Sorting list of CPE devices by the sequence of integers contained in the comments
|
||||||
|
Loading…
Reference in New Issue
Block a user