mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#1689: Fix for Python 2
This commit is contained in:
@@ -285,7 +285,7 @@ class Prefix(CreatedUpdatedModel, CustomFieldModel):
|
|||||||
"""
|
"""
|
||||||
Return all IPAddresses within this Prefix.
|
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):
|
def get_available_ips(self):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user