-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:
		| @@ -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.. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user