more logging. is it even being *set*?

This commit is contained in:
brent s. 2020-05-18 07:11:59 -04:00
parent befdc9e99b
commit 4942e7d662
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
2 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,7 @@ enable-ra
# {{ assignment.iface }} assignment
# Assignment blocks:
{%- for b in assignment.iface_blocks %}
# * {{ b|string }} ({{ assignment.dhcp6_ranges[assign_loop.index0] }})
# * {{ b|string }} {{ assignment.dhcp6_ranges[assign_loop.index0] }}
{%- endfor %}
{%- if do_listen %}
listen-address = {{ assignment.iface_ll }}

View File

@ -132,6 +132,7 @@ class Assignment(object):
for i in self.iface_blocks:
# DHCPv6 range.
_base = str(i.ip).rstrip(':')
logger.debug('Base prefix for {0}: {1}'.format(str(i), _base))
start = '{0}:dead:beef:cafe:0'.format(_base)
stop = '{0}:dead:beef:cafe:ffff'.format(_base)
self.dhcp6_ranges.append((start, stop))