Commit 071b46bc authored by Xavier Thompson's avatar Xavier Thompson

slapformat: WIP: Fix partition ip parsing

parent 4b37e0e7
......@@ -313,8 +313,8 @@ class Partition(object):
addresses = options['address']
if addresses:
address_list = [ipaddress.ip_interface(a) for a in addresses.split(' ')]
ipv4_list = [ip for ip in ip_addresses if ip.version == 4]
ipv6_list = [ip for ip in ip_addresses if ip.version == 6]
ipv4_list = [ip for ip in address_list if ip.version == 4]
ipv6_list = [ip for ip in address_list if ip.version == 6]
self.ipv4_list = ipv4_list or [interface.getPartitionIPv4Addr(index)]
self.ipv6_list = ipv6_list or [interface.getPartitionIPv6Addr(index)]
# IPv6 range
......
Markdown is supported
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