From 126f2a3bdd2b91d828b7057d6b53a96f957a23df Mon Sep 17 00:00:00 2001 From: Jernej Jakob Date: Mon, 11 May 2020 17:38:59 +0200 Subject: configdict: T2449: set accept_ra=2 if ipv6 address autoconf or dhcpv6 is set To make SLAAC and DHCPv6 work when forwarding=1, accept_ra must be 2 (default for accept_ra is 1). --- python/vyos/configdict.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index 5ca369f66..7c1ecdd5d 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -348,6 +348,11 @@ def intf_to_dict(conf, default): # If the interface does not exist, it could not have changed pass + # to make IPv6 SLAAC and DHCPv6 work with forwarding=1, + # accept_ra must be 2 + if intf['ipv6_autoconf'] or 'dhcpv6' in intf['address']: + intf['ipv6_accept_ra'] = 2 + return intf, disable -- cgit v1.2.3