mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #3668: search address by DNS name when assigning
This commit is contained in:
@@ -745,6 +745,7 @@ class IPAddressAssignView(PermissionRequiredMixin, View):
|
||||
).filter(
|
||||
vrf=form.cleaned_data['vrf'],
|
||||
address__istartswith=form.cleaned_data['address'],
|
||||
dns_name__icontains=form.cleaned_data['dns_name'],
|
||||
)[:100] # Limit to 100 results
|
||||
table = tables.IPAddressAssignTable(queryset)
|
||||
|
||||
|
Reference in New Issue
Block a user