Use correct generator

This commit is contained in:
Nico Schottelius 2019-03-25 12:16:22 +01:00
parent 56c09f1fda
commit 0ad6fa9a36

View file

@ -128,9 +128,9 @@ class L2Controller(object):
for mode in ["range_router"]:
for v6_net in self.v6_routes[mode]:
# This is a /64
v6_dst_base = self.info['v6_nat64_base'].next()
v6_dst_base = self.info['v6_nat64_gen'].next()
# This is a /96xs!
# This is a /96 -> the first /96 inside the /64
v6_dst = v6_dst_base.subnets(new_prefix=self.info['v6_nat64_mask']).next()
for v4_net in self.v4_routes[mode]: