Commit 14e132f0 authored by Xavier Thompson's avatar Xavier Thompson

slapformat: Fix typo

parent 1aae08a5
......@@ -1214,10 +1214,9 @@ class Interface(object):
def _generateRandomIPv6Addr(self, address_dict):
netmask = address_dict['netmask']
netmask_len = lenNetmaskIpv6(netmask)
r = random.randint(1, 65000)
addr = ':'.join(address_dict['addr'].split(':')[:-1] + ['%x' % r])
socket.inet_pton(socket.AF_INET6, address)
socket.inet_pton(socket.AF_INET6, addr)
return dict(addr=addr, netmask=netmask)
def _generateRandomIPv6Range(self, address_dict, suffix):
......
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