--- lib/PXElator/dhcpd.pm 2009/08/11 15:13:19 199 +++ lib/PXElator/dhcpd.pm 2009/08/11 15:55:26 200 @@ -48,21 +48,10 @@ print "RENEW $mac $ip\n"; return $ip; } else { - $ip = client::next_ip; + $ip = client::next_ip( $mac ); print "NEW $mac $ip\n"; - symlink "$conf/ip/$ip", "$conf/mac/$mac"; } - my $ip_path = "$conf/ip/$ip"; - mkdir $ip_path unless -e $ip_path; - - if ( -l "$ip_path/mac" && readlink "$ip_path/mac" ne "$conf/mac/$mac" ) { - warn "$mac IP changed from ", readlink "$ip_path/mac", " to $ip"; - unlink "$ip_path/mac"; - }; - - symlink "$conf/mac/$mac", "$ip_path/mac"; - return $ip; }