Changeset 177


Ignore:
Timestamp:
Aug 24, 2016, 5:52:42 PM (8 years ago)
Author:
g7moreau
Message:
  • Add vlan id in klask exportdb method
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r176 r177  
    12351235      my $date = sprintf '%04i-%02i-%02i %02i:%02i', $year, $mon, $mday, $hour, $min;
    12361236
     1237      my $vlan = '';
     1238      $vlan = $computerdb->{$ip}{network}.'('.get_current_vlan_id($computerdb->{$ip}{network}).')' if $computerdb->{$ip}{network};
     1239
    12371240      printf "%-28s  %2s  <-------  %-40s %-15s %-18s %-16s %s\n",
    12381241         $computerdb->{$ip}{switch_hostname} || $computerdb->{$ip}{switch_description},
     
    12421245         $computerdb->{$ip}{mac_address},
    12431246         $date,
    1244          $computerdb->{$ip}{network} || '';
     1247         $vlan;
    12451248      }
    12461249   return;
Note: See TracChangeset for help on using the changeset viewer.