Changeset 180 for trunk/klask


Ignore:
Timestamp:
Aug 25, 2016, 2:03:11 PM (8 years ago)
Author:
g7moreau
Message:
  • Add vlan ID in vlan column
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r179 r180  
    18781878   LOOP_ON_IP_ADDRESS:
    18791879   for my $ip (Net::Netmask::sort_by_ip_address(keys %result_ip)) {
    1880          printf "%-15s %-40s %-16s %s\n", $ip, $result_ip{$ip}->{hostname_fq}, $result_ip{$ip}->{date_last_detection}, $result_ip{$ip}->{vlan};
     1880         my $vlan_nameid = $result_ip{$ip}->{vlan}.'('.get_current_vlan_id($result_ip{$ip}->{vlan}).')';
     1881         printf "%-15s %-40s %-16s %s\n", $ip, $result_ip{$ip}->{hostname_fq}, $result_ip{$ip}->{date_last_detection}, $vlan_nameid;
    18811882      }
    18821883   }
     
    19171918      my ( $host_short ) = split m/ \. /xms, $result_ip{$ip}->{hostname_fq};
    19181919
     1920      my $vlan_nameid = $result_ip{$ip}->{vlan}.'('.get_current_vlan_id($result_ip{$ip}->{vlan}).')';
     1921
    19191922      print <<"END_HTML";
    19201923  <tr class="$typerow">
    19211924   <td sorttable_customkey="$ip_sort">$ip</td>
    19221925   <td sorttable_customkey="$host_short">$result_ip{$ip}->{hostname_fq}</td>
    1923    <td>$result_ip{$ip}->{vlan}</td>
     1926   <td>$vlan_nameid</td>
    19241927   <td>$result_ip{$ip}->{date_last_detection}</td>
    19251928  </tr>
Note: See TracChangeset for help on using the changeset viewer.