diff options
Diffstat (limited to 'data/templates/accel-ppp/config_ipv6_pool.j2')
-rw-r--r-- | data/templates/accel-ppp/config_ipv6_pool.j2 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/config_ipv6_pool.j2 b/data/templates/accel-ppp/config_ipv6_pool.j2 new file mode 100644 index 0000000..86efdc1 --- /dev/null +++ b/data/templates/accel-ppp/config_ipv6_pool.j2 @@ -0,0 +1,21 @@ +{% if client_ipv6_pool is vyos_defined %} +[ipv6-nd] +AdvAutonomousFlag=1 +verbose=1 + +[ipv6-pool] +{% for pool_name, pool_config in client_ipv6_pool.items() %} +{% if pool_config.prefix is vyos_defined %} +{% for prefix, options in pool_config.prefix.items() %} +{{ prefix }},{{ options.mask }},name={{ pool_name }} +{% endfor %} +{% endif %} +{% if pool_config.delegate is vyos_defined %} +{% for prefix, options in pool_config.delegate.items() %} +delegate={{ prefix }},{{ options.delegation_prefix }},name={{ pool_name }} +{% endfor %} +{% endif %} +{% endfor %} +[ipv6-dhcp] +verbose=1 +{% endif %} |