Fix problem where default gateway was interpreted oddly in makedhcp ipv6

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16294 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-05-14 14:52:21 +00:00
parent f2fe9bd17e
commit a5ea4c5332

View File

@ -1088,7 +1088,7 @@ sub process_request
my @ip6routes = `ip -6 route`;
foreach (@ip6routes) {
#TODO: filter out multicast? Don't know if multicast groups *can* appear in ip -6 route...
if (/^fe80::\/64/ or /^unreachable/ or /^[^ ]+ via/) { #ignore link-local, junk, and routed networks
if (/^default/ or /^fe80::\/64/ or /^unreachable/ or /^[^ ]+ via/) { #ignore link-local, junk, and routed networks
next;
}
my @parts = split /\s+/;