<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/systemd, 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-07T20:22:01+00:00</updated>
<entry>
<title>dhcpv6-client: T6301: do not block commits on an unanswered Release</title>
<updated>2026-11-07T20:22:01+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-11-07T20:22:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=a4110d7d50eddc433da2d0d08a092585f5fe6ee5'/>
<id>urn:sha1:a4110d7d50eddc433da2d0d08a092585f5fe6ee5</id>
<content type='text'>
When stopped, dhcp6c removes its leases at once but then retransmits the
Release for ~30 seconds if the server never replies. As the client is stopped
or restarted synchronously, every commit deleting "address dhcpv6", changing
"dhcpv6-options" or moving the interface to another VRF hung for that long.

Stopping the client now waits at most 5 seconds for it to exit before it is
killed, which is treated as a clean stop so the unit does not end up failed.

Add a smoketest dropping the Release on a veth pair with a local DHCPv6
server, verifying the commit returns quickly and the lease is removed.
</content>
</entry>
<entry>
<title>interfaces: T3871: give a re-created Hyper-V NIC the name of the NIC it replaced</title>
<updated>2026-10-31T09:58:29+00:00</updated>
<author>
<name>Alex Kudentsov</name>
<email>43482574+alexk37@users.noreply.github.com</email>
</author>
<published>2026-10-14T13:46:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=153dd688b327c922ec4b371db1fdd11b8ee8cf9e'/>
<id>urn:sha1:153dd688b327c922ec4b371db1fdd11b8ee8cf9e</id>
<content type='text'>
A Hyper-V NIC is known by its MAC alone. One deleted and created again on
the same VM - an Azure NIC re-created, or a Hyper-V adapter removed and
added - comes back with a new MAC, so nothing on it matched the store: its
name stayed reserved, the new NIC got a new name, and its configuration
was left on a name with no NIC. cloud-init does not run again on the same
instance, so nothing else repairs it.

At boot, a vacant name now goes to a new NIC only when the pairing is not
in doubt:
- exactly one recorded name has no NIC, and exactly one new Hyper-V NIC
  appeared. With more of either, the order the NICs come up in does not
  say which replaced which, so nothing is handed over and the names stay
  reserved, as before;
- the name went missing at this pass. The store records which names were
  missing at the last pass, so a NIC removed for good does not hand its
  name to a NIC added at a later boot;
- the name's own NIC was a Hyper-V one. The store records which names sat
  on a Hyper-V NIC; a MAC-keyed name can belong to other hardware, and a
  store written before this was recorded hands nothing over (the boot pass
  logs that when it holds a name back);
- only at boot. On a running system the configuration under a name is not
  applied to the NIC that takes it, so the hotplug unit passes --hotplug,
  which names the new NIC like any other and records the vacant name as
  missing, so the next boot does not hand it over either.

An adoption is logged as a warning, reported under 'adopted' in the status
file (kept there across hotplug passes while it holds), and repeated by
vyos-router, as a slot match is: verify the port before relying on its
configuration.
</content>
</entry>
<entry>
<title>interfaces: T3871: name hot-plugged interfaces</title>
<updated>2026-10-31T09:58:29+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-10-07T17:56:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=c95aae771d74e11bedc095e92e4c38ce7d25fa59'/>
<id>urn:sha1:c95aae771d74e11bedc095e92e4c38ce7d25fa59</id>
<content type='text'>
An interface already in the mapping store is renamed by udev from the
generated link file as the device is added. Hardware the system has never
seen still has to be assigned a name and recorded, so run the naming pass
from a udev rule as well. It holds off until the boot-time configuration has
been applied, so the boot storm of add events costs nothing.

The rule matches on hardware rather than on its absence. A net device carries
no driver itself, it sits below the one that does, so the negative form was
true for every interface and skipped the very cards this exists for.
</content>
</entry>
<entry>
<title>interfaces: T3871: name interfaces from a slot-anchored mapping store</title>
<updated>2026-10-31T09:58:29+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-10-07T17:56:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=c73faac7f95ec837da6f964d15cc05ff9ffd2de6'/>
<id>urn:sha1:c73faac7f95ec837da6f964d15cc05ff9ffd2de6</id>
<content type='text'>
Names used to be derived from 'hw-id' in config.boot. A node carrying an
address but no hw-id had to be matched to some NIC, and nothing available at
boot could say which one - every heuristic could bind a configured address to
the wrong physical wire.

Naming authority moves to a mapping store binding a name to the slot the
hardware occupies. The slot is the identity, so a replacement card in that
slot is that interface again. The store renders systemd .link files, leaving
udev to apply names as devices appear.
</content>
</entry>
<entry>
<title>Revert: T3871: make boot-time interface naming deterministic and hw-id aware</title>
<updated>2026-10-31T09:58:26+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-10-07T17:56:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=552ade702fc033f68cda998055bd5b74f195c7ac'/>
<id>urn:sha1:552ade702fc033f68cda998055bd5b74f195c7ac</id>
<content type='text'>
This reverts commit 22cfee116c9935f4a33da4923eff189f2f646371.
</content>
</entry>
<entry>
<title>Merge pull request #5580 from c-po/T9108-lease-watch-log-spam</title>
<updated>2026-10-19T18:46:57+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-10-19T18:46:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=86ca8ff96933950b50d74c0233ee5d8c95e34256'/>
<id>urn:sha1:86ca8ff96933950b50d74c0233ee5d8c95e34256</id>
<content type='text'>
dhcp: T9108: silence per-run systemd messages of the lease-watch timer</content>
</entry>
<entry>
<title>dhcp: T9108: silence per-run systemd messages of the lease-watch timer</title>
<updated>2026-10-18T16:46:11+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-10-18T16:46:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=31b1b21814bcb7499ae3f628df20d4bbd3dcdf17'/>
<id>urn:sha1:31b1b21814bcb7499ae3f628df20d4bbd3dcdf17</id>
<content type='text'>
The stuck-RENEW watchdog runs as a oneshot every 5 minutes, and each run
made systemd log three info-level lines (Starting, Deactivated, Finished),
flooding the system log.

Cap the unit's log level at notice. The routine start/stop messages are
dropped, while the watchdog's own warnings about restarting dhclient and
its error messages are still logged.
</content>
</entry>
<entry>
<title>wlb: T9472: reload the health daemon instead of restarting</title>
<updated>2026-10-17T18:56:35+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-10-17T18:55:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=794320749a8a3612d57f9677a8c4a5e90cdd85df'/>
<id>urn:sha1:794320749a8a3612d57f9677a8c4a5e90cdd85df</id>
<content type='text'>
Every commit touching WAN load-balancing - or any firewall group - restarted
the health daemon. Until it was back, its rules, routes and ip rules were
gone: new connections were neither balanced nor source NATed. The health
state was reset as well, an interface known to be down got new connections
until its failure count was reached again.

A commit now reloads the daemon. It waits for the commit to finish, then
replaces its rules in one transaction and only adds or removes the routes
and ip rules of changed interfaces. Interfaces staying configured keep
their health state.
</content>
</entry>
<entry>
<title>dhcp: T9108: restart dhclient when unicast RENEW is overdue</title>
<updated>2026-09-26T19:28:13+00:00</updated>
<author>
<name>Brad Kollmyer</name>
<email>bradk@vitalsoft.com</email>
</author>
<published>2026-07-21T18:19:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d69fcb435214b4525e4ca77e0380edbff4222749'/>
<id>urn:sha1:d69fcb435214b4525e4ca77e0380edbff4222749</id>
<content type='text'>
ISC dhclient can sit in unicast RENEW to a server that has lost the
session until the lease expires (hours), with the modem link still up.
That is distinct from T9085 (successful RENEW that does not reinstall a
missing default).

Add a lightweight oneshot helper and systemd timer (every 5m) that parses
each active interface ISC lease DB: if renew is more than 15 minutes in
the past while expire is still in the future, restart dhclient@iface
(30m cooldown). Enable the timer from the package postinst.
</content>
</entry>
<entry>
<title>T3871: make boot-time interface naming deterministic and hw-id aware</title>
<updated>2026-08-08T16:33:38+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-08-06T19:59:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=22cfee116c9935f4a33da4923eff189f2f646371'/>
<id>urn:sha1:22cfee116c9935f4a33da4923eff189f2f646371</id>
<content type='text'>
Multi-vendor PCIe NIC systems could lose or rename Ethernet/wireless
interfaces on boot, because naming was decided from a single per-device
udev event before all hardware had a chance to enumerate.

Replace that with one authoritative pass, run once configuration is
available during router startup: wait for configured hardware, apply
every hw-id binding, and name whatever has none yet by PCIe distance
from the root complex and MAC address - the same result every boot.

A node with its hw-id deleted (NIC replacement) or its whole
configuration removed is treated as an ordinary open slot, filled the
same way - recovering its original hardware whenever the interfaces
that vacated slots this boot also show up as candidates.

Boot now reports any interface still unresolved, and the pass is covered
by a new test suite in vyos-build named: make testifname

Assisted-by: Claude:claude-sonnet-5
</content>
</entry>
</feed>
