Fixes #3864: Limit number of related IPs

This commit is contained in:
Saria Hajjar 2020-01-09 13:06:13 +00:00
parent 770f4c962c
commit b076002207
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
* [#3589](https://github.com/netbox-community/netbox/issues/3589) - Fix validation on tagged VLANs of an interface * [#3589](https://github.com/netbox-community/netbox/issues/3589) - Fix validation on tagged VLANs of an interface
* [#3853](https://github.com/netbox-community/netbox/issues/3853) - Fix device role link on config context view * [#3853](https://github.com/netbox-community/netbox/issues/3853) - Fix device role link on config context view
* [#3856](https://github.com/netbox-community/netbox/issues/3856) - Allow filtering VM interfaces by multiple MAC addresses * [#3856](https://github.com/netbox-community/netbox/issues/3856) - Allow filtering VM interfaces by multiple MAC addresses
* [#3864](https://github.com/netbox-community/netbox/issues/3864) - Limit number of related IPs
--- ---

View File

@ -676,7 +676,7 @@ class IPAddressView(PermissionRequiredMixin, View):
address=str(ipaddress.address) address=str(ipaddress.address)
).filter( ).filter(
vrf=ipaddress.vrf, address__net_contained_or_equal=str(ipaddress.address) vrf=ipaddress.vrf, address__net_contained_or_equal=str(ipaddress.address)
) )[:50]
related_ips_table = tables.IPAddressTable(list(related_ips), orderable=False) related_ips_table = tables.IPAddressTable(list(related_ips), orderable=False)
return render(request, 'ipam/ipaddress.html', { return render(request, 'ipam/ipaddress.html', {