From f0b0e72405cca83d95395b1cc2cb82b78598e565 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 8 Nov 2026 19:54:08 +0100 Subject: wwan: T9388: import wait_for() only where the bearer is polled Every interface script loads the WWAN interface class, but only polling the bearer of a modem needs wait_for(). Import it there, as the WWAN helpers already do. --- python/vyos/ifconfig/wwan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/ifconfig/wwan.py b/python/vyos/ifconfig/wwan.py index 3358c8da1..bebbd2b07 100644 --- a/python/vyos/ifconfig/wwan.py +++ b/python/vyos/ifconfig/wwan.py @@ -20,7 +20,6 @@ from json import loads from vyos.defaults import directories from vyos.ifconfig.interface import Interface from vyos.utils.dict import dict_search -from vyos.utils.misc import wait_for from vyos.utils.process import cmdl from vyos.utils.process import is_systemd_service_active from vyos.utils.wwan import bearer_families @@ -72,6 +71,8 @@ class WWANIf(Interface): # A bearer can report "connected" before its ipv4-config/ipv6-config # is populated over D-Bus - retry briefly rather than mistaking that # delay for "no static config". + from vyos.utils.misc import wait_for + bearer = method = None def _ready(): -- cgit v1.2.3