From 96484651b9f075f52b34ec0086c4ecff58a90ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Wed, 22 Jul 2026 19:17:17 -0300 Subject: [PATCH] fix(networks): exclude every link-local address from the networks table donets() only skips the exact address 'fe80::/64' when scanning routes, so a link-local route with any other prefix (e.g. a longer fe80:: subnet) is added to the networks table as a bogus network. Match any fe80:: prefix instead of the single literal value. Recovered from the unmerged lenovobuild branch (original 8b79cf85). Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com> (cherry picked from commit d2be0c386539b821418a9c310670b30d75a71f82) --- xCAT-server/lib/xcat/plugins/networks.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/networks.pm b/xCAT-server/lib/xcat/plugins/networks.pm index 4a906e778..e8e1e9bf2 100644 --- a/xCAT-server/lib/xcat/plugins/networks.pm +++ b/xCAT-server/lib/xcat/plugins/networks.pm @@ -388,7 +388,7 @@ sub donets foreach (@ip6table) { my @ent = split /\s+/, $_; - if ($ent[0] eq 'fe80::/64' or $ent[0] eq 'unreachable' or + if ($ent[0] =~ m/^fe80::/ or $ent[0] eq 'unreachable' or $ent[1] eq 'via' or $ent[2] eq 'lo') { #Do not contemplate link-local, unreachable, gatewayed networks,