From 8b79cf85355e503a78c81c90b1084c2acd9c57d6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 5 Mar 2018 14:00:25 -0500 Subject: [PATCH] Do not add any link local address to networks table --- 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 6a05726b0..62d235033 100644 --- a/xCAT-server/lib/xcat/plugins/networks.pm +++ b/xCAT-server/lib/xcat/plugins/networks.pm @@ -391,7 +391,7 @@ sub donets foreach (@ip6table) { my @ent = split /\s+/, $_; - if ($ent[0] eq 'fe80::/64' or $ent[0] eq 'unreachable' or $ent[1] eq 'via') { + if ($ent[0] =~ m/^fe80::/ or $ent[0] eq 'unreachable' or $ent[1] eq 'via') { #Do not contemplate link-local, unreachable, or gatewayed networks further #DHCPv6 relay will be manually entered into networks as was the case for IPv4