From 9f75f7bf6c143ee3ba7522d281f3a930634cbd83 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Wed, 7 Oct 2026 19:57:00 +0200 Subject: interfaces: T3871: report a name which changed hands between known cards Cards rearranged among themselves, or a map edited by hand, leave every name matched to a card the store knows - just not the one it had. That was filed as an ordinary match, indistinguishable from a machine where nothing moved, while the addresses configured under those names had quietly changed cable. Report it separately. Which name goes to which card is unchanged, the slot still decides; only the account of what happened is. --- src/system/vyos-net-name-resolve.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/system') diff --git a/src/system/vyos-net-name-resolve.py b/src/system/vyos-net-name-resolve.py index aa0e74c74..43d2ed8d2 100755 --- a/src/system/vyos-net-name-resolve.py +++ b/src/system/vyos-net-name-resolve.py @@ -151,8 +151,11 @@ def write_status(store: dict, devices: list, applied: dict, report: dict, 'renamed': applied, # everything recognised from the store, however it was recognised 'matched': {**report.get('matched', {}), + **report.get('reassigned', {}), **report.get('moved', {}), **report.get('replaced', {})}, + # the name changed hands between cards the store already knows + 'reassigned': report.get('reassigned', {}), # the card was found in a different slot - certain, it is the same card 'moved': report.get('moved', {}), # a different card took the slot - the one case that needs verifying -- cgit v1.2.3