From 121ea40602b096a0a26fe836c5d3ab3899b5b7a3 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 7 Nov 2026 22:13:55 +0100 Subject: wwan: T9388: do not retry a family the network does not supply After a re-dial, a configured family the connected bearer had no settings for was reported as incomplete. On a network without IPv6 this was retried on the next ten reconcile passes, restarting the DHCPv6 client or SLAAC each time, and then logged as given up - on every re-dial. A family the connected bearer does not supply is now settled with the configured fallback. Only a missing bearer or a static one without an address is retried. --- python/vyos/ifconfig/wwan.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/vyos/ifconfig/wwan.py b/python/vyos/ifconfig/wwan.py index dd2d96a5d..adb6764d2 100644 --- a/python/vyos/ifconfig/wwan.py +++ b/python/vyos/ifconfig/wwan.py @@ -134,9 +134,8 @@ class WWANIf(Interface): What the previous session left behind is dropped for a family the new one does not supply (yet) or hands to a DHCP(v6) client, and the configured DHCP(v6) client or SLAAC is started for it as a commit - does. Returns True once every configured family is settled, False if - the settings of one are still missing and the caller should try - again.""" + does. Returns False if there is no connected bearer yet, or a static + one lacks its address, and the caller should try again.""" self.config = config address = config.get('address') or [] families = [] @@ -157,7 +156,7 @@ class WWANIf(Interface): continue self._forget_bearer(family) self._apply_fallback(family) - if method != 'dhcp': + if bearer is None: complete = False return complete -- cgit v1.2.3