From cfc58824138595920717ea8400fd1cb90cc62dae Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 7 Aug 2023 22:52:26 +0200 Subject: dhcp(v6): T5428: add proper return statements in set_dhcp(v6) methods --- python/vyos/ifconfig/interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index 8ed5cb114..75c5f27a9 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1275,7 +1275,6 @@ class Interface(Control): # running, but it should be running (e.g. on system startup) if 'dhcp_options_changed' in self.config or not is_systemd_service_active(systemd_service): return self._cmd(f'systemctl restart {systemd_service}') - return None else: if is_systemd_service_active(systemd_service): self._cmd(f'systemctl stop {systemd_service}') @@ -1284,6 +1283,7 @@ class Interface(Control): if os.path.isfile(file): os.remove(file) + return None def set_dhcpv6(self, enable): """ @@ -1317,6 +1317,8 @@ class Interface(Control): if os.path.isfile(config_file): os.remove(config_file) + return None + def set_mirror_redirect(self): # Please refer to the document for details # - https://man7.org/linux/man-pages/man8/tc.8.html -- cgit v1.2.3