summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-11-07 22:13:55 +0100
committerChristian Breunig <christian@breunig.cc>2026-11-07 22:19:52 +0100
commit121ea40602b096a0a26fe836c5d3ab3899b5b7a3 (patch)
treed66637fa5ab3ce4b443d5bab013acc4650f83a2b /python
parent3328081cceffc383925b4da2d5ee0323657df149 (diff)
downloadvyos-1x-121ea40602b096a0a26fe836c5d3ab3899b5b7a3.tar.gz
vyos-1x-121ea40602b096a0a26fe836c5d3ab3899b5b7a3.zip
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.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/wwan.py7
1 files changed, 3 insertions, 4 deletions
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