From 01becd21dedd079f840bff1e6085c1cb3f99f509 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 17 May 2017 14:43:44 -0400 Subject: [PATCH] Closes #1196: Added a lag_id filter to the API interfaces view --- netbox/dcim/filters.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netbox/dcim/filters.py b/netbox/dcim/filters.py index 9efa4efaa18..39838a26587 100644 --- a/netbox/dcim/filters.py +++ b/netbox/dcim/filters.py @@ -477,6 +477,11 @@ class InterfaceFilter(DeviceComponentFilterSet): method='filter_type', label='Interface type', ) + lag_id = django_filters.ModelMultipleChoiceFilter( + name='lag', + queryset=Interface.objects.all(), + label='LAG interface (ID)', + ) mac_address = django_filters.CharFilter( method='_mac_address', label='MAC address',