From ac143747a3ebdee18eeb56133158feda6e8bc41f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 17 Jan 2011 14:48:54 +0000 Subject: [PATCH] Warn on unsupported IPv6 networks git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/bind.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/bind.pm b/xCAT-server/lib/xcat/plugins/bind.pm index 9f1705146..cd9df7d27 100755 --- a/xCAT-server/lib/xcat/plugins/bind.pm +++ b/xCAT-server/lib/xcat/plugins/bind.pm @@ -180,6 +180,12 @@ sub process_request } foreach (@{$nettab->getAllEntries()}) { + if ($_->{net} =~ /:/) { + my $rsp = {}; + $rsp->{data}->[0] = "Ignoring IPv6 network, not supported in bind.pm (site.dnshandler=ddns if you want to do IPv6 DNS records"; + xCAT::MsgeUtils->message("W",$rsp,$callback,1); + next; + } push @args, "-n"; push @args, $_->{net} . ":" . $_->{mask}; }