mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
#1689: Fix for Python 2
This commit is contained in:
parent
6b0721cc21
commit
c33775d71e
@ -285,7 +285,7 @@ class Prefix(CreatedUpdatedModel, CustomFieldModel):
|
||||
"""
|
||||
Return all IPAddresses within this Prefix.
|
||||
"""
|
||||
return IPAddress.objects.filter(address__net_host_contained=self.prefix, vrf=self.vrf)
|
||||
return IPAddress.objects.filter(address__net_host_contained=str(self.prefix), vrf=self.vrf)
|
||||
|
||||
def get_available_ips(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user