-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:
parent
3f3a332ccd
commit
0d8bde84e0
@ -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..
|
||||
|
Loading…
Reference in New Issue
Block a user