Browse Source

Closes #1196: Added a lag_id filter to the API interfaces view

Jeremy Stretch 8 years ago
parent
commit
01becd21de
1 changed files with 5 additions and 0 deletions
  1. 5 0
      netbox/dcim/filters.py

+ 5 - 0
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',