mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 04:10:46 +00:00
support <xcatmaster> keyword in site/networks table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9538 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -3092,7 +3092,18 @@ sub nodeSet {
|
||||
my $mask = $propVals->{'mask'};
|
||||
my $gateway = $propVals->{'gateway'};
|
||||
my $ftp = $propVals->{'tftpserver'};
|
||||
my $nameserver = $propVals->{'nameservers'};
|
||||
|
||||
# convert <xcatmaster> to nameserver IP
|
||||
my $nameserver;
|
||||
if ($propVals->{'nameservers'} eq '<xcatmaster>')
|
||||
{
|
||||
$nameserver = xCAT::InstUtils->convert_xcatmaster();
|
||||
}
|
||||
else
|
||||
{
|
||||
$nameserver = $propVals->{'nameservers'};
|
||||
}
|
||||
|
||||
if ( !$network || !$mask || !$ftp || !$nameserver ) {
|
||||
|
||||
# It is acceptable to not have a gateway
|
||||
|
Reference in New Issue
Block a user