start_address = ipaddress.ip_network(start_address, strict=False)
except ValueError:
start_address = start_address.split("/")
- ldigits = len(start_address[0].split("."))
+ ldigits = start_address[0].count(".")
# How many octets do we need to add?
# (LACNIC does not seem to have a /8 or greater assigned, so the following should suffice.)