From 0d8bde84e01822a5bf0a1df8c73d3ce16ce3612d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 17 Mar 2009 20:11:27 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/dhcp.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index f913b0dc8..c49cafbf2 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -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..