From b0c839856df1ae72c2392571d439a3e100795438 Mon Sep 17 00:00:00 2001 From: jjohnson2 Date: Wed, 29 Apr 2015 15:51:10 -0400 Subject: [PATCH] Finish fix from previous commit The change to remote behavior was not fully compensated for in previous commit. Go farther and ensure that the classic syntax is executed exactly is it was. --- xCAT-server/lib/xcat/plugins/dhcp.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 31c488d68..1dd8406a1 100755 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -2557,9 +2557,9 @@ sub addnic { #add a section if not there #$restartdhcp=1; #print "Adding NIC $nic\n"; - if ($nic =~ /!remote!/) { - #push @$conf, "#shared-network $nic {\n"; - #push @$conf, "#\} # $nic nic_end\n"; + if ($nic eq '!remote!') { + push @$conf, "#shared-network $nic {\n"; + push @$conf, "#\} # $nic nic_end\n"; } else { push @$conf, "shared-network $nic {\n"; push @$conf, "\} # $nic nic_end\n";