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:
parent
997bf0f11b
commit
27c4bcbbe4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user