-Implement syntax to declare remote networks in networks table for dhcp

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2925 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-03-17 20:11:27 +00:00
parent 3f3a332ccd
commit 0d8bde84e0

View File

@ -744,8 +744,14 @@ sub addnic
{ #add a section if not there
$restartdhcp=1;
print "Adding NIC $nic\n";
push @dhcpconf, "#shared-network $nic {\n";
push @dhcpconf, "#\} # $nic nic_end\n";
if ($nic =~ /!remote!/) {
push @dhcpconf, "#shared-network $nic {\n";
push @dhcpconf, "#\} # $nic nic_end\n";
} else {
push @dhcpconf, "shared-network $nic {\n";
push @dhcpconf, "\} # $nic nic_end\n";
}
}
#return; #Don't touch it, it should already be fine..