1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #5570: Add "management only" filter widget for interfaces list

This commit is contained in:
Jeremy Stretch
2021-01-07 11:29:59 -05:00
parent 47b7ec8d00
commit e9d888bf63
3 changed files with 11 additions and 0 deletions

View File

@ -2687,6 +2687,12 @@ class InterfaceFilterForm(DeviceComponentFilterForm):
choices=BOOLEAN_WITH_BLANK_CHOICES
)
)
mgmt_only = forms.NullBooleanField(
required=False,
widget=StaticSelect2(
choices=BOOLEAN_WITH_BLANK_CHOICES
)
)
mac_address = forms.CharField(
required=False,
label='MAC address'