Adding existing IP to interface #3172

Closed
opened 2025-12-29 18:26:20 +01:00 by adam · 1 comment
Owner

Originally created by @rmrf-run on GitHub (Jan 16, 2020).

Running latest release 2.7.0

Went to add existing IP to interface and received an error of

module 'ipam.filters' has no attribute 'IPAddressFilter'
Debug error points to
addresses = filters.IPAddressFilter(request.POST, addresses).qs[:100]
https://github.com/netbox-community/netbox/blob/develop/netbox/ipam/views.py#L763

I changed it to addresses = filters.IPAddressFilterSet(request.POST, addresses).qs[:100] and was able to search for the existing IP to attach to interface

Originally created by @rmrf-run on GitHub (Jan 16, 2020). Running latest release 2.7.0 Went to add existing IP to interface and received an error of `module 'ipam.filters' has no attribute 'IPAddressFilter'` Debug error points to `addresses = filters.IPAddressFilter(request.POST, addresses).qs[:100]` https://github.com/netbox-community/netbox/blob/develop/netbox/ipam/views.py#L763 I changed it to `addresses = filters.IPAddressFilterSet(request.POST, addresses).qs[:100]` and was able to search for the existing IP to attach to interface
adam closed this issue 2025-12-29 18:26:20 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 16, 2020):

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

@jeremystretch commented on GitHub (Jan 16, 2020): This issue has been closed as it does not conform to one of the [provided templates](https://github.com/netbox-community/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/netbox-community/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3172