<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/systemd/vyos-net-name-resolve.service, 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-10-31T09:58:29+00:00</updated>
<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>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>
