From c955d8935b9e895c91818bd0e7573501aa7e7f65 Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 10 May 2011 08:25:23 +0000 Subject: [PATCH] support keyword in site/networks table. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9536 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/networks.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/networks.pm b/xCAT-server/lib/xcat/plugins/networks.pm index 4d6ea8faf..bd89db921 100644 --- a/xCAT-server/lib/xcat/plugins/networks.pm +++ b/xCAT-server/lib/xcat/plugins/networks.pm @@ -541,6 +541,13 @@ sub donets } my $tent = $nettab->getAttribs({'net' => $net, 'mask' => $mask}, 'nameservers'); + + # convert to nameserver IP + if ($tent->{nameservers} eq '') + { + $tent->{nameservers} = xCAT::InstUtils->convert_xcatmaster(); + } + unless ($tent and $tent->{nameservers}) { my $text = join ',', @nameservers;