2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-11 10:52:41 +00:00

Handle more unusual ipv6 route tables

This commit is contained in:
Jarrod Johnson
2020-07-02 10:31:25 -04:00
parent 4c3124dcf5
commit b6eaf5cf3e

View File

@@ -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