diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-27 19:44:04 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-27 19:44:04 +0200 |
commit | da29092d3d40a3b140fcb500bb8ae275cbf367fa (patch) | |
tree | 83ba5ad76a816093926f43d5198fc51fc547e4f8 /python/vyos/ifconfig/pppoe.py | |
parent | cfd4d283ff0297372248b4ec57f67fd36dd33fc2 (diff) | |
download | vyos-1x-da29092d3d40a3b140fcb500bb8ae275cbf367fa.tar.gz vyos-1x-da29092d3d40a3b140fcb500bb8ae275cbf367fa.zip |
vyos.ifconfig: pppoe: T3778: bugfix assignemnt of cached config
We need to copy the configuration before this is done in super().update() as we
utilize self.set_dhcpv6() before this is done by the base class.
Diffstat (limited to 'python/vyos/ifconfig/pppoe.py')
-rw-r--r-- | python/vyos/ifconfig/pppoe.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/vyos/ifconfig/pppoe.py b/python/vyos/ifconfig/pppoe.py index 9153863de..1d13264bf 100644 --- a/python/vyos/ifconfig/pppoe.py +++ b/python/vyos/ifconfig/pppoe.py @@ -75,6 +75,14 @@ class PPPoEIf(Interface): interface setup code and provide a single point of entry when workin on any interface. """ + # Cache the configuration - it will be reused inside e.g. DHCP handler + # XXX: maybe pass the option via __init__ in the future and rename this + # method to apply()? + # + # We need to copy this from super().update() as we utilize self.set_dhcpv6() + # before this is done by the base class. + self._config = config + # remove old routes from an e.g. old VRF assignment vrf = '' if 'vrf_old' in config: |