From c972a8989bbfc1c6b83ddc5bb9eec650615b6264 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 16 Nov 2016 15:40:21 -0500 Subject: [PATCH] Filter out global local ipv6 address for makedhcp command --- xCAT-server/lib/xcat/plugins/dhcp.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 460547f7e..831609b83 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -1591,7 +1591,8 @@ sub process_request foreach (@ip6routes) { #TODO: filter out multicast? Don't know if multicast groups *can* appear in ip -6 route... - if (/^default/ or /^fe80::\/64/ or /^unreachable/ or /^[^ ]+ via/) { #ignore link-local, junk, and routed networks + #ignore link-local, global-local, junk, and routed networks + if (/^default/ or /^fe80::\/64/ or /^2002::\/64/ or /^unreachable/ or /^[^ ]+ via/) { next; } my @parts = split /\s+/;