Show
Ignore:
Timestamp:
03/20/09 14:29:54 (3 years ago)
Author:
Frederic Lepied <frederic.lepied@…>
Children:
e5e582bfb02593a628c358d97bd630ff91da7f41
Parents:
17e460a8150132a2f65061e57d00d0af6f545ed8
git-committer:
Frederic Lepied <frederic.lepied@…> (03/20/09 14:29:54)
Message:

display IP address if present

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pxe/dpysystem

    r25d22dd r7741e41  
    3131    for mac in MacAddress.objects.filter(system=system): 
    3232        print 'Mac:', 
     33        r = '' 
    3334        for i in range(0, 10, 2): 
    34             sys.stdout.write('%s:' % mac.mac[i:i+2]) 
    35         sys.stdout.write('%s\n' % mac.mac[10:12]) 
     35            r = r +  '%s:' % mac.mac[i:i+2] 
     36        r = r + mac.mac[10:12] 
     37        print '%s (%s)' % (r, mac_to_ip(r)) 
    3638     
    3739    logs = Log.objects.filter(system=system).order_by('-date') 
     
    4042     
    4143    print 'History:' 
    42     for l in logs[1:]: 
     44    for l in logs[1:10]: 
    4345        print l.date, l.boot_name.name 
    4446