From 1f1257d7eea71978210daa03a857a21f9ffb32ea Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 7 Nov 2026 22:14:07 +0100 Subject: wwan: T9388: always stop the DHCP(v6) client for a static bearer The client was only stopped after asking systemd whether it was running at all. Stopping an inactive unit does nothing, so the query is dropped. This also removes the configuration a client left behind when it ended up failed, which the query skipped. --- python/vyos/ifconfig/wwan.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'python') diff --git a/python/vyos/ifconfig/wwan.py b/python/vyos/ifconfig/wwan.py index adb6764d2..8dd10b60d 100644 --- a/python/vyos/ifconfig/wwan.py +++ b/python/vyos/ifconfig/wwan.py @@ -286,9 +286,6 @@ class WWANIf(Interface): # A client which cannot get a lease keeps restarting and is never # "active", which stop_systemd_unit() would leave alone - state = cmdl(['systemctl', 'show', '--value', '-p', 'ActiveState', unit]) - if state not in ('active', 'activating', 'reloading'): - return None try: cmdl(['systemctl', 'stop', unit]) except OSError: -- cgit v1.2.3