summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
author1vivy <1vivy@tutanota.com>2023-07-23 13:31:00 -0400
committerChristian Breunig <christian@breunig.cc>2023-07-31 13:58:24 +0200
commit1d86092328ef43368fcb0bf348c14a01466e5892 (patch)
treebb234fb0cdca706f7e1cc77f40a9f1ea7819131c /data/templates
parent230c3f5b9fedf055c15fc1e968b508c0fcaf0c59 (diff)
downloadvyos-1x-1d86092328ef43368fcb0bf348c14a01466e5892.tar.gz
vyos-1x-1d86092328ef43368fcb0bf348c14a01466e5892.zip
dhcpv6-pd: T5387: add support for no-release flag
When no-release is specified, dhcp6c client will not release allocated address or prefix on client exit. vyos.ifconfig: dhcpv6: T5387: re-use options_file for no release flag [WIP] * Todo: render Jinja2 template and fill it vyos.ifconfig: dhcpv6: T5387: finish options_file and no release flag in cli vyos.ifconfig: dhcpv6: T5387: fix missing/wrong end tag vyos.ifconfig: dhcpv6: T5387: fix options, no var for -n dhcpv6-client: T5387: fix missing / from filepaths
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/dhcp-client/dhcp6c_daemon-options.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/data/templates/dhcp-client/dhcp6c_daemon-options.j2 b/data/templates/dhcp-client/dhcp6c_daemon-options.j2
new file mode 100644
index 000000000..d33d418fc
--- /dev/null
+++ b/data/templates/dhcp-client/dhcp6c_daemon-options.j2
@@ -0,0 +1,2 @@
+{% set no_release = '-n' if dhcpv6_options.no_release is vyos_defined else '' %}
+DHCP6C_OPTS="-D -k /run/dhcp6c/dhcp6c.{{ ifname }}.sock -c /run/dhcp6c/dhcp6c.{{ ifname }}.conf -p /run/dhcp6c/dhcp6c.{{ ifname }}.pid {{ no_release }} {{ ifname }}"