<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/tests/test_utils_wwan.py, branch rolling</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2026-11-07T21:19:52+00:00</updated>
<entry>
<title>wwan: T9388: apply a static bearer's address/gateway/DNS directly</title>
<updated>2026-11-07T21:19:52+00:00</updated>
<author>
<name>Adam Smith</name>
<email>adamsmith@yzguy.io</email>
</author>
<published>2026-10-08T01:20:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=9babe4468dec43d2df20488bacd3877d77c42b35'/>
<id>urn:sha1:9babe4468dec43d2df20488bacd3877d77c42b35</id>
<content type='text'>
QMI raw-ip modems get their address, gateway and DNS from ModemManager
as a "static" bearer instead of over a DHCP(v6) or Router Advertisement
exchange, so "address dhcp", "address dhcpv6" and "ipv6 address
autoconf" never produced a usable config and only worked for IPv4 by
accident.

Check the interface's connected bearer first. If its method for the
family is static, apply it directly; if it is dhcp, or there is no
bearer yet, fall through to the existing DHCP(v6) client / kernel SLAAC
unchanged.

- Address and DNS are applied from the bearer. DNS is registered with
  vyos-hostsd under the same dhcp-&lt;if&gt;/dhcpv6-&lt;if&gt; tags a real client
  uses. A DHCP(v6) client which was started while the bearer was still
  missing, including one which keeps restarting, is stopped before the
  settings are applied.
- The default route is rendered into FRR as a tag 210 static route, the
  same way a DHCP one is. WWANIf records the gateway of the bearer in
  /run/vyos-wwan, which the new get_wwan_router() filter reads, and a
  new block in staticd.frr.j2 fed by get_wwan_interfaces() renders the
  IPv4 and IPv6 default routes. Distance, no-default-route and VRFs
  behave as for DHCP, also for an interface without "address dhcp".
  frrender notices a gateway change, and WWANIf reconciles FRR with
  vyos-frr-render.py whenever the recorded gateway changes, the way the
  dhclient lease hook does, so op-mode reconnect is covered as well.
  The state is written atomically, as the renderer reads it
  concurrently.
- The address installed from the bearer is recorded in /run/vyos-wwan
  too. It is removed on reconnect, when the family is no longer
  configured and when the interface goes away, and nothing else on the
  interface is ever touched.
- vyos-netlinkd applies the bearer again after it re-dials a lost
  session, as the new session can come back with a different address or
  gateway. A DHCP client used to pick that up on its own. What a
  previous session left behind is dropped for a family the new one does
  not supply, the configured DHCP(v6) client or SLAAC is started for it
  as a commit would, and an incomplete result is retried on the
  following reconcile passes for a while.
- The bearer is picked by its connected status rather than bearers[0],
  and its config is polled briefly with wait_for() until it is no
  longer missing or a placeholder, since it can be populated slightly
  after the bearer reports connected.
</content>
</entry>
<entry>
<title>wwan: T9388: request an IPv6 bearer for autoconf without an address node</title>
<updated>2026-10-18T09:50:03+00:00</updated>
<author>
<name>Adam Smith</name>
<email>adamsmith@yzguy.io</email>
</author>
<published>2026-10-16T14:45:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=22165e8624c12e826ec860d1720ccea31b5cc834'/>
<id>urn:sha1:22165e8624c12e826ec860d1720ccea31b5cc834</id>
<content type='text'>
"ipv6 address autoconf" lives below "ipv6", so an interface which only
gets its address by SLAAC has no "address" node at all. connect_options()
only worked out the IP type when that node existed and fell back to
ipv4 otherwise, which dialled an IPv4-only bearer and left the interface
without any IPv6.

Read the address list with a default instead. All other combinations of
dhcp, dhcpv6 and autoconf give the same IP type as before.
</content>
</entry>
</feed>
