From e196a2943f072085d84dffc1a9bd349bb2c58234 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 1 Apr 2010 19:10:37 +0000 Subject: [PATCH] -Fix problem in 2.4 where a refactoring removed code that gave explicit IP deassignment to *NOIP* mac addresses git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5644 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index c575a46ec..357cc8ae7 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -207,6 +207,10 @@ sub addnode if ( !defined($ip) ) { $ip = "DENIED"; } + if ($hname eq '*NOIP*') { + $hname = $node . "-noip".$mac; + $hname =~ s/://g; + } if ($guess_next_server and $ip ne "DENIED") { $nxtsrv = xCAT::Utils->my_ip_facing($hname);