summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-08-23 00:16:45 +0200
committerChristian Poessinger <christian@poessinger.com>2020-08-23 01:10:46 +0200
commita574a01ab5c02aeb90c6d099dce482c1bf8be096 (patch)
tree35965564b3162732545b43ab25e4d2ae55e40743 /data/templates
parentec1cf7dd1508e4a84d99818c7e34d093242b3331 (diff)
downloadvyos-1x-a574a01ab5c02aeb90c6d099dce482c1bf8be096.tar.gz
vyos-1x-a574a01ab5c02aeb90c6d099dce482c1bf8be096.zip
dhcpv6-pd: T2677: add support for rapid-commit option
When rapid-commit is specified, dhcp6c will include a rapid-commit option in solicit messages and wait for an immediate reply instead of advertisements.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/dhcp-client/ipv6.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/dhcp-client/ipv6.tmpl b/data/templates/dhcp-client/ipv6.tmpl
index 85841fe94..68f668117 100644
--- a/data/templates/dhcp-client/ipv6.tmpl
+++ b/data/templates/dhcp-client/ipv6.tmpl
@@ -11,6 +11,9 @@ interface {{ ifname }} {
{% if dhcpv6_options is not defined or dhcpv6_options.temporary is not defined %}
send ia-na 0; # non-temporary address
{% endif %}
+{% if dhcpv6_options is defined and dhcpv6_options.rapid_commit is defined %}
+ send rapid-commit; # wait for immediate reply instead of advertisements
+{% endif %}
{% endif %}
{% if dhcpv6_options is defined and dhcpv6_options.pd is defined %}
{% for pd in dhcpv6_options.pd %}