|
@@ -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',
|