From 8f52e7f523bbdc9158d12c5067a1313c931af44f Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Fri, 20 Dec 2024 16:43:09 +0200 Subject: pppoe: T6930: Remove unnecessary code In case of changes in config that require reconnect PPPoEIF.remove() function is called and old default routes are removed. So we do not need to do it once again. --- python/vyos/ifconfig/pppoe.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/python/vyos/ifconfig/pppoe.py b/python/vyos/ifconfig/pppoe.py index febf1452d..f80a68d4f 100644 --- a/python/vyos/ifconfig/pppoe.py +++ b/python/vyos/ifconfig/pppoe.py @@ -115,14 +115,6 @@ class PPPoEIf(Interface): # before this is done by the base class. self._config = config - # remove old routes from an e.g. old VRF assignment - if 'shutdown_required': - vrf = None - tmp = get_interface_config(self.ifname) - if 'master' in tmp: - vrf = tmp['master'] - self._remove_routes(vrf) - # DHCPv6 PD handling is a bit different on PPPoE interfaces, as we do # not require an 'address dhcpv6' CLI option as with other interfaces if 'dhcpv6_options' in config and 'pd' in config['dhcpv6_options']: -- cgit v1.2.3