mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 11:01:48 +00:00
tests: Fixing ipv6 address generation
Signed-off-by: Ashish Pant <ashish12pant@gmail.com>
This commit is contained in:
parent
81e3d6095f
commit
0c5c6e2e64
@ -513,7 +513,10 @@ def generate_ips(network, no_of_ips):
|
||||
count = 0
|
||||
while count < no_of_ips:
|
||||
ipaddress_list.append("{}/{}".format(next_ip, mask))
|
||||
next_ip += step
|
||||
if addr_type == "ipv6":
|
||||
next_ip = ipaddr.IPv6Address(int(next_ip) + step)
|
||||
else:
|
||||
next_ip += step
|
||||
count += 1
|
||||
|
||||
return ipaddress_list
|
||||
|
Loading…
Reference in New Issue
Block a user