summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-client/ipv6.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-16 12:14:56 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-16 12:14:56 +0200
commit039e323d7e46f7d8244c42794f713a0bfecbe2d3 (patch)
treea7e3e29f7f110cbf2adccd717eca9d09c8c1eb0b /data/templates/dhcp-client/ipv6.tmpl
parentcb014d8818a864512680f57953d6f21ad5467e59 (diff)
downloadvyos-1x-039e323d7e46f7d8244c42794f713a0bfecbe2d3.tar.gz
vyos-1x-039e323d7e46f7d8244c42794f713a0bfecbe2d3.zip
dhcp(v6)-client: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/dhcp-client/ipv6.tmpl')
-rw-r--r--data/templates/dhcp-client/ipv6.tmpl60
1 files changed, 0 insertions, 60 deletions
diff --git a/data/templates/dhcp-client/ipv6.tmpl b/data/templates/dhcp-client/ipv6.tmpl
deleted file mode 100644
index 085cfe5a9..000000000
--- a/data/templates/dhcp-client/ipv6.tmpl
+++ /dev/null
@@ -1,60 +0,0 @@
-### Autogenerated by interface.py ###
-
-# man https://www.unix.com/man-page/debian/5/dhcp6c.conf/
-interface {{ ifname }} {
-{% if dhcpv6_options.duid is vyos_defined %}
- send client-id {{ dhcpv6_options.duid }};
-{% endif %}
-{% if address is vyos_defined and 'dhcpv6' in address %}
- request domain-name-servers;
- request domain-name;
-{% if dhcpv6_options.parameters_only is vyos_defined %}
- information-only;
-{% endif %}
-{% if dhcpv6_options.temporary is not vyos_defined %}
- send ia-na 0; # non-temporary address
-{% endif %}
-{% if dhcpv6_options.rapid_commit is vyos_defined %}
- send rapid-commit; # wait for immediate reply instead of advertisements
-{% endif %}
-{% endif %}
-{% if dhcpv6_options.pd is vyos_defined %}
-{% for pd in dhcpv6_options.pd %}
- send ia-pd {{ pd }}; # prefix delegation #{{ pd }}
-{% endfor %}
-{% endif %}
-};
-
-{% if address is vyos_defined and 'dhcpv6' in address %}
-{% if dhcpv6_options.temporary is not vyos_defined %}
-id-assoc na 0 {
- # Identity association for non temporary address
-};
-{% endif %}
-{% endif %}
-
-{% if dhcpv6_options.pd is vyos_defined %}
-{% for pd, pd_config in dhcpv6_options.pd.items() %}
-id-assoc pd {{ pd }} {
-{# length got a default value #}
- prefix ::/{{ pd_config.length }} infinity;
-{% set sla_len = 64 - pd_config.length|int %}
-{% set count = namespace(value=0) %}
-{% for interface, interface_config in pd_config.interface.items() if pd_config.interface is vyos_defined %}
- prefix-interface {{ interface }} {
- sla-len {{ sla_len }};
-{% if interface_config.sla_id is vyos_defined %}
- sla-id {{ interface_config.sla_id }};
-{% else %}
- sla-id {{ count.value }};
-{% endif %}
-{% if interface_config.address is vyos_defined %}
- ifid {{ interface_config.address }};
-{% endif %}
- };
-{% set count.value = count.value + 1 %}
-{% endfor %}
-};
-{% endfor %}
-{% endif %}
-