mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #1196: Added a lag_id filter to the API interfaces view
This commit is contained in:
@ -477,6 +477,11 @@ class InterfaceFilter(DeviceComponentFilterSet):
|
|||||||
method='filter_type',
|
method='filter_type',
|
||||||
label='Interface type',
|
label='Interface type',
|
||||||
)
|
)
|
||||||
|
lag_id = django_filters.ModelMultipleChoiceFilter(
|
||||||
|
name='lag',
|
||||||
|
queryset=Interface.objects.all(),
|
||||||
|
label='LAG interface (ID)',
|
||||||
|
)
|
||||||
mac_address = django_filters.CharFilter(
|
mac_address = django_filters.CharFilter(
|
||||||
method='_mac_address',
|
method='_mac_address',
|
||||||
label='MAC address',
|
label='MAC address',
|
||||||
|
Reference in New Issue
Block a user