From b6eaf5cf3e40612194fd72855f755356ec0b7ca2 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 2 Jul 2020 10:31:25 -0400 Subject: [PATCH] Handle more unusual ipv6 route tables --- 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 fb0a6143b..09e834fcb 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] =~ m/^fe80::/ or $ent[0] eq 'unreachable' or + if ($ent[0] =~ m/^fe80::/ or $ent[0] eq 'unreachable' or $ent[1] eq 'nexthop' or $ent[0] eq 'default' or $ent[1] eq 'via' or $ent[2] eq 'lo') { #Do not contemplate link-local, unreachable, gatewayed networks, # or networks connected to loopback interface