Commit 33b774f1 authored by arthur-zzz's avatar arthur-zzz
Browse files

Fix IPAM view for release-22.1

parent a03fc9d9
Pipeline #36163 passed with stages
in 26 minutes and 25 seconds
......@@ -37,7 +37,7 @@ class IPAMApplication(ExtApplication):
ADDRESS_SPOT_DIST = 8 # Area around used address to show in free spot
MAX_IPv4_NET_SIZE = 256 # Cover whole IPv4 prefix with spot if size below
def get_prefix_spot(self, prefix, sep=True, extra=None):
def get_prefix_spot(self, prefix, sep=False, extra=None):
"""
Return addresses around existing ones
"""
......@@ -324,7 +324,7 @@ class IPAMApplication(ExtApplication):
[
{"address": z[0], "isFree": True}
for z in spot
if str(z[0]) not in allocated_addresses
if z[0] and str(z[0]) not in allocated_addresses
]
if spot
else []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment