/[pxelator]/lib/PXElator/httpd.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/httpd.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 308 by dpavlin, Thu Aug 27 14:31:15 2009 UTC revision 309 by dpavlin, Thu Aug 27 16:47:42 2009 UTC
# Line 232  warn "XXX pids = ", dump( $daemons::pids Line 232  warn "XXX pids = ", dump( $daemons::pids
232                                          'mac' => format::mac( $mac => 'html' ),                                          'mac' => format::mac( $mac => 'html' ),
233                                          'deploy' => html::select( 'deploy', $deploy, config::available )                                          'deploy' => html::select( 'deploy', $deploy, config::available )
234                                  );                                  );
235                                  $deploy = qq|<h2>PXElinux</h2>| . html::pre( config::for_ip( $ip ) );                                  if ( my $pxelinux = config::for_ip( $ip ) ) {
236                                            $deploy = qq|<h2>PXElinux</h2>| . html::pre( $pxelinux );
237                                    }
238                          }                          }
239    
240                          print $client ok                          print $client ok
# Line 261  warn "XXX pids = ", dump( $daemons::pids Line 263  warn "XXX pids = ", dump( $daemons::pids
263    
264                          print $client ok                          print $client ok
265                                  , qq|<h2>Clients on $server::ip</h2>|                                  , qq|<h2>Clients on $server::ip</h2>|
266                                  , html::table( -5,                                  , html::table( -6,
267                                          'ip', 'mac', 'hostname', 'conf', 'arp',                                          'ip', 'mac', 'arp', 'hostname', 'deploy', 'conf',
268                                          map {                                          map {
269                                                  my $ip = $_;                                                  my $ip = $_;
270                                                  my $mac = client::mac_from_ip $ip;                                                  my $conf = client::all_conf( $ip );
271                                                  my $arp = $arp->{ $mac };                                                  my $mac = delete $conf->{mac} || '';
                                                 $arp = $arp ? $arp->[1] : '';  
                                                 $arp =~ s{$ip}{};  
272                                                  (                                                  (
273                                                          qq|<a href=/client/$ip>$ip</a>|                                                          qq|<a href=/client/$ip>$ip</a>|
274                                                          , format::mac( $mac => 'html' )                                                          , format::mac( $mac => 'html' )
275                                                          , client::conf( $ip, 'hostname' )                                                          , ( $arp->{$mac} ? $arp->{$mac}->[1] : '' )
276                                                          , html::pre_dump( client::all_conf( $ip ) )                                                          , delete $conf->{hostname}
277                                                          , $arp                                                          , delete $conf->{deploy}
278                                                            , html::pre_dump( $conf )
279                                                  );                                                  );
280                                          }                                          }
281                                          sort { ip::to_int($a) cmp ip::to_int($b) }                                          sort { ip::to_int($a) cmp ip::to_int($b) }

Legend:
Removed from v.308  
changed lines
  Added in v.309

  ViewVC Help
Powered by ViewVC 1.1.26