diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-19 23:10:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 23:10:51 +0100 |
commit | bc5e9e58225dc8a4213d5c9a368c76aa903a520f (patch) | |
tree | 76a7d26f9ad2c79eea5b3b67750f8a0f4c727fdf /python/vyos | |
parent | d52f8040afc0f1e5ea967a330cce2ff3dcf31ae1 (diff) | |
parent | 844e35dea0500c48ff942ef4542dbb7a25b9dc7d (diff) | |
download | vyos-1x-bc5e9e58225dc8a4213d5c9a368c76aa903a520f.tar.gz vyos-1x-bc5e9e58225dc8a4213d5c9a368c76aa903a520f.zip |
Merge pull request #2858 from yzguy/yzguy/T5964
T5964: add missing imports for is_wwan_connected()
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/utils/network.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/utils/network.py b/python/vyos/utils/network.py index b782e0bd8..cac59475d 100644 --- a/python/vyos/utils/network.py +++ b/python/vyos/utils/network.py @@ -159,7 +159,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') |