Changeset 263


Ignore:
Timestamp:
Sep 14, 2017, 10:31:27 PM (7 years ago)
Author:
g7moreau
Message:
  • add vlan on switch line on exportdb format html (not sure it's a good idea)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r262 r263  
    15461546         my ( $host_short ) = sprintf '%s %3s' , split(m/ \. /xms, $db_switch_parent{$sw}->{'switch'}, 1), $db_switch_parent{$sw}->{'port_hr'};
    15471547
     1548         my $vlan = $db_switch{$db_switch_parent{$sw}->{'switch'}}->{'network'};
     1549         $vlan .= ' ('.get_current_vlan_id($db_switch{$db_switch_parent{$sw}->{'switch'}}->{'network'}).')' if $db_switch{$db_switch_parent{$sw}->{'switch'}}->{'network'};
     1550
    15481551         my $parent_port_hr = format_aggregator4html($db_switch_output_port{$sw});
    15491552         my $child_port_hr  = format_aggregator4html($db_switch_parent{$sw}->{'port_hr'});
     
    15571560   <td sorttable_customkey="$ip_sort">$ipv4_address</td>
    15581561   <td sorttable_customkey="$mac_sort">$mac_address</td>
    1559    <td></td>
     1562   <td>$vlan</td>
    15601563   <td>$date</td>
    15611564  </tr>
     
    16041607            $arrow ='&#8678;' if $port_connect =~ m/^(Trk|Br|Po)/;
    16051608
     1609         my $vlan = $db_switch{$sw}->{'network'};
     1610         $vlan .= ' ('.get_current_vlan_id($db_switch{$sw}->{'network'}).')' if $db_switch{$sw}->{'network'};
     1611
    16061612         if (exists $db_switch_output_port{$sw}) {
    16071613
     
    16191625   <td sorttable_customkey="$ip_sort">$ipv4_address</td>
    16201626   <td sorttable_customkey="$mac_sort">$mac_address</td>
    1621    <td></td>
     1627   <td>$vlan</td>
    16221628   <td>$date</td>
    16231629  </tr>
     
    16351641   <td sorttable_customkey="">$ipv4_address</td>
    16361642   <td sorttable_customkey="">$mac_address</td>
    1637    <td></td>
     1643   <td>$vlan</td>
    16381644   <td>$date</td>
    16391645  </tr>
Note: See TracChangeset for help on using the changeset viewer.