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

@ -2,6 +2,10 @@
## v2.10.4 (FUTURE)
### Enhancements
* [#5570](https://github.com/netbox-community/netbox/issues/5570) - Add "management only" filter widget for interfaces list
### Bug Fixes
* [#5584](https://github.com/netbox-community/netbox/issues/5584) - Restore power utilization panel under device view

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'

View File

@ -406,6 +406,7 @@ class BaseInterfaceTable(BaseTable):
class InterfaceTable(DeviceComponentTable, BaseInterfaceTable, PathEndpointTable):
mgmt_only = BooleanColumn()
tags = TagColumn(
url_name='dcim:interface_list'
)