Skip to content

Commit

Permalink
Closes #1885: Added a device filter field for primary IP
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Feb 21, 2018
1 parent b837e8e commit a8977a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions netbox/dcim/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,15 @@ class DeviceFilterForm(BootstrapMixin, CustomFieldFilterForm):
)
status = forms.MultipleChoiceField(choices=device_status_choices, required=False)
mac_address = forms.CharField(required=False, label='MAC address')
has_primary_ip = forms.NullBooleanField(
required=False,
label='Has a primary IP',
widget=forms.Select(choices=[
('', '---------'),
('True', 'Yes'),
('False', 'No'),
])
)


#
Expand Down

0 comments on commit a8977a5

Please sign in to comment.