--- lib/PXElator/httpd.pm 2009/08/09 21:13:36 185 +++ lib/PXElator/httpd.pm 2009/08/09 22:05:09 188 @@ -184,23 +184,32 @@ my $ip = $1 || $client->peerhost; if ( $ip ne $server::ip ) { my $hostname = client::conf( $ip, 'hostname' => $param->{hostname} ); - my $deploy = client::conf( $ip, 'deploy' => $param->{deploy} ); + + my @table = ( + 'ip' => $ip, + 'hostname' => qq||, + ); + + my $deploy; + + if ( my $mac = client::mac( $ip ) ) { + $deploy = client::conf( $ip, 'deploy' => $param->{deploy} ); + push @table, ( + 'mac' => $mac, + 'deploy' => html::select( 'deploy', $deploy, config::available ) + ); + $deploy = qq|

PXElinux

| . html::pre( config::for_ip( $ip ) ); + } + print $client $ok , qq|
| - , html::table( 2, - 'ip' => $ip, - 'mac' => client::mac( $ip ), - 'hostname' => qq||, - 'deploy' => html::select( 'deploy', $deploy, config::available ), - ) + , html::table( 2, @table ), , qq|
| - , qq|

PXElinux $deploy

|
-				, config::for_ip( $ip )
-				, qq|
| + , $deploy ; if ( my $amt = client::conf( $ip, 'amt' ) ) { - print $client amt::info( $amt ); + print $client qq|

AMT

|, amt::info( $amt ); } } else { print $client $ok