summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-01-20 00:20:57 +0200
committerGitHub <noreply@github.com>2024-01-20 00:20:57 +0200
commit6eb683646505f9fd75e58161b48e47ef18311d9d (patch)
treeb523d9a6bdb06f4f262b7aa04b1000e9f8e4244d /python
parent2bf2ca273165221faac559fe0d843d26dff8a18b (diff)
parent8a06049ece70c6889e41eefc68ce7cb3d5becc8d (diff)
downloadvyos-1x-6eb683646505f9fd75e58161b48e47ef18311d9d.tar.gz
vyos-1x-6eb683646505f9fd75e58161b48e47ef18311d9d.zip
Merge pull request #2859 from vyos/mergify/bp/sagitta/pr-2858
T5964: add missing imports for is_wwan_connected() (backport #2858)
Diffstat (limited to 'python')
-rw-r--r--python/vyos/utils/network.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/utils/network.py b/python/vyos/utils/network.py
index c3c419a61..b58e02d91 100644
--- a/python/vyos/utils/network.py
+++ b/python/vyos/utils/network.py
@@ -155,7 +155,9 @@ def is_wwan_connected(interface):
""" Determine if a given WWAN interface, e.g. wwan0 is connected to the
carrier network or not """
import json
+ from vyos.utils.dict import dict_search
from vyos.utils.process import cmd
+ from vyos.utils.process import is_systemd_service_active
if not interface.startswith('wwan'):
raise ValueError(f'Specified interface "{interface}" is not a WWAN interface')