From 46d92ac80bdaa23d11b10b9261aa12a24c5cc5a1 Mon Sep 17 00:00:00 2001
From: Christian Poessinger <christian@poessinger.com>
Date: Sun, 17 May 2020 17:34:21 +0200
Subject: dhcpv6-pd: T421: migrate from ISC dhclient to wide-dhcpv6-client

ISC does not support running the client on PPP(oE) interfaces which makes it
unusable for DHCPv6 Prefix Delegation tasks.

Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Unsupported device type 512 for "pppoe0"
---
 data/templates/dhcp-client/ipv6.tmpl | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

(limited to 'data')

diff --git a/data/templates/dhcp-client/ipv6.tmpl b/data/templates/dhcp-client/ipv6.tmpl
index be0235add..8485c9d78 100644
--- a/data/templates/dhcp-client/ipv6.tmpl
+++ b/data/templates/dhcp-client/ipv6.tmpl
@@ -1,4 +1,10 @@
 # generated by dhcp.py
-interface "{{ ifname }}" {
-	request routers, domain-name-servers, domain-name;
-}
+interface {{ ifname }} {
+	request domain-name-servers,domain-name;
+{%  if dhcpv6_prm_only %}
+    information-only;
+{%  endif %}
+{%  if not dhcpv6_temporary %}
+    send ia-na 0;
+{%  endif %}
+};
-- 
cgit v1.2.3