summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authormetricsmancer <metricsmancer@gmail.com>2026-03-21 17:59:56 +0100
committermetricsmancer <metricsmancer@gmail.com>2026-03-21 17:59:56 +0100
commit5c800be95921e2d22ea0e43b931dea1abd3616a0 (patch)
treef94da64b14f34ec8c6d4b7c7d0c2f0ce4db350e7 /data
parentfc06cc45148a42171baf9f4ae01da33c3f0df1aa (diff)
downloadvyos-1x-5c800be95921e2d22ea0e43b931dea1abd3616a0.tar.gz
vyos-1x-5c800be95921e2d22ea0e43b931dea1abd3616a0.zip
T8405: fix noipv6 emitted when dhcpv6-options configured without ipv6 node
When a PPPoE interface has dhcpv6-options (e.g. prefix delegation) configured but no explicit ipv6 node, the Jinja template writes noipv6 into the PPP peer configuration. This prevents IPv6CP negotiation, causing the ISP to silently ignore all DHCPv6 traffic. Fix the peer template to also check for dhcpv6_options before emitting noipv6, and add dhcpv6-options and ipv6 to the list of config nodes that trigger a PPPoE session restart so the change takes effect without manual disconnect/reconnect.
Diffstat (limited to 'data')
-rw-r--r--data/templates/pppoe/peer.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/pppoe/peer.j2 b/data/templates/pppoe/peer.j2
index efe47f369..1cbfaa670 100644
--- a/data/templates/pppoe/peer.j2
+++ b/data/templates/pppoe/peer.j2
@@ -59,7 +59,7 @@ mru {{ mru }}
{{ "usepeerdns" if no_peer_dns is not vyos_defined }}
-{% if ipv6 is vyos_defined %}
++{% if ipv6 is vyos_defined or dhcpv6_options.pd is vyos_defined or (address is vyos_defined and 'dhcpv6' in address) %}
+ipv6 {{ 'ipv6cp-use-ipaddr' if ipv6.address.autoconf is vyos_defined }}
{% else %}
noipv6