support <xcatmaster> 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
This commit is contained in:
sjing 2011-05-10 08:25:23 +00:00
parent be3afc4ced
commit c955d8935b

View File

@ -541,6 +541,13 @@ sub donets
}
my $tent = $nettab->getAttribs({'net' => $net, 'mask' => $mask}, 'nameservers');
# convert <xcatmaster> to nameserver IP
if ($tent->{nameservers} eq '<xcatmaster>')
{
$tent->{nameservers} = xCAT::InstUtils->convert_xcatmaster();
}
unless ($tent and $tent->{nameservers})
{
my $text = join ',', @nameservers;