summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-11-07 22:14:07 +0100
committerChristian Breunig <christian@breunig.cc>2026-11-07 22:19:52 +0100
commit1f1257d7eea71978210daa03a857a21f9ffb32ea (patch)
tree3eca651985dda7ce43f49cbc5d982ae21ffd1271 /python
parent121ea40602b096a0a26fe836c5d3ab3899b5b7a3 (diff)
downloadvyos-1x-1f1257d7eea71978210daa03a857a21f9ffb32ea.tar.gz
vyos-1x-1f1257d7eea71978210daa03a857a21f9ffb32ea.zip
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.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/wwan.py3
1 files changed, 0 insertions, 3 deletions
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: