Changeset 253 for trunk/klask
- Timestamp:
- Sep 8, 2017, 5:10:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r252 r253 1499 1499 $vlan = $computerdb->{$ip}{network}.' ('.get_current_vlan_id($computerdb->{$ip}{network}).')' if $computerdb->{$ip}{network}; 1500 1500 1501 my $parent_port_hr = format_aggregator4html($computerdb->{$ip}{switch_port_hr}); 1502 1501 1503 print <<"END_HTML"; 1502 1504 <tr class="$typerow"> 1503 1505 <td sorttable_customkey="$switch_hostname_sort">$switch_hostname</td> 1504 <td class="bklask-port"> &format_aggregator4html($computerdb->{$ip}{switch_port_hr})</td>1506 <td class="bklask-port">$parent_port_hr</td> 1505 1507 <td colspan="2">$arrow</td> 1506 1508 <td sorttable_customkey="$host_short">$computerdb->{$ip}{hostname_fq}</td> … … 1545 1547 my ( $host_short ) = sprintf '%s %3s' , split(m/ \. /xms, $db_switch_parent{$sw}->{'switch'}, 1), $db_switch_parent{$sw}->{port_hr}; 1546 1548 1549 my $parent_port_hr = format_aggregator4html($db_switch_output_port{$sw}); 1550 my $child_port_hr = format_aggregator4html($db_switch_parent{$sw}->{port_hr}); 1551 1547 1552 print <<"END_HTML"; 1548 1553 <tr class="$typerow"> 1549 1554 <td sorttable_customkey="$switch_hostname_sort">$sw</td> 1550 <td class="bklask-port"> &format_aggregator4html($db_switch_output_port{$sw})</td>1551 <td>$arrow</td><td> &format_aggregator4html($db_switch_parent{$sw}->{port_hr})</td>1555 <td class="bklask-port">$parent_port_hr</td> 1556 <td>$arrow</td><td>$child_port_hr</td> 1552 1557 <td sorttable_customkey="$host_short">$db_switch_parent{$sw}->{'switch'}</td> 1553 1558 <td sorttable_customkey="$ip_sort">$ipv4_address</td> … … 1559 1564 } 1560 1565 else { 1566 my $parent_port_hr = format_aggregator4html($db_switch_output_port{$sw}); 1567 1561 1568 print <<"END_HTML"; 1562 1569 <tr class="$typerow"> 1563 1570 <td sorttable_customkey="$switch_hostname_sort">$sw</td> 1564 <td class="bklask-port"> &format_aggregator4html($db_switch_output_port{$sw})</td>1571 <td class="bklask-port">$parent_port_hr</td> 1565 1572 <td>$arrow</td><td></td> 1566 1573 <td sorttable_customkey="router">router</td> … … 1602 1609 my ( $host_short ) = sprintf '%s %3s' , split( m/\./xms, $sw, 1), $db_switch_output_port{$sw}; 1603 1610 1611 my $parent_port_hr = format_aggregator4html($port_connect); 1612 my $child_port_hr = format_aggregator4html($db_switch_output_port{$sw}); 1613 1604 1614 print <<"END_HTML"; 1605 1615 <tr class="$typerow"> 1606 1616 <td sorttable_customkey="$switch_hostname_sort">$sw_connect</td> 1607 <td class="bklask-port"> &format_aggregator4html($port_connect)</td>1608 <td>$arrow</td><td> &format_aggregator4html($db_switch_output_port{$sw})</td>1617 <td class="bklask-port">$parent_port_hr</td> 1618 <td>$arrow</td><td>$child_port_hr</td> 1609 1619 <td sorttable_customkey="$host_short">$sw</td> 1610 1620 <td sorttable_customkey="$ip_sort">$ipv4_address</td> … … 1616 1626 } 1617 1627 else { 1628 my $parent_port_hr = format_aggregator4html($port_connect); 1629 1618 1630 print <<"END_HTML"; 1619 1631 <tr class="$typerow"> 1620 1632 <td sorttable_customkey="$switch_hostname_sort">$sw_connect</td> 1621 <td class="bklask-port"> &format_aggregator4html($port_connect)</td>1633 <td class="bklask-port">$parent_port_hr</td> 1622 1634 <td>$arrow</td><td></td> 1623 1635 <td sorttable_customkey="$sw">$sw</td>
Note: See TracChangeset
for help on using the changeset viewer.