diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-12-20 16:43:09 +0200 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-12-20 16:43:09 +0200 |
commit | 8f52e7f523bbdc9158d12c5067a1313c931af44f (patch) | |
tree | 2a998a40060aac6d3266f3fcb4ac11bbf928158c | |
parent | fdb9ce311ae485bcdaa59c5653c631df7efd3e29 (diff) | |
download | vyos-1x-8f52e7f523bbdc9158d12c5067a1313c931af44f.tar.gz vyos-1x-8f52e7f523bbdc9158d12c5067a1313c931af44f.zip |
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.
-rw-r--r-- | python/vyos/ifconfig/pppoe.py | 8 |
1 files changed, 0 insertions, 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']: |