Changeset 231


Ignore:
Timestamp:
Mar 10, 2017, 2:27:44 PM (7 years ago)
Author:
g7moreau
Message:
  • Export format txt update - small bogue
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r230 r231  
    13801380   my $computerdb = computerdb_load();
    13811381
    1382    printf "%-28s %-8s            %-40s %-15s %-18s %-16s %s\n", qw(Switch Port Hostname-FQ IPv4-Address MAC-Address Date VLAN);
     1382   printf "%-28s %8s            %-40s %-15s %-18s %-16s %s\n", qw(Switch Port Hostname-FQ IPv4-Address MAC-Address Date VLAN);
    13831383   print "--------------------------------------------------------------------------------------------------------------------------------------------\n";
    13841384
     
    25232523   for my $sw (sort keys %db_switch_output_port) {
    25242524      if (exists $db_switch_parent{$sw}) {
    2525          printf "%-28s  %2s  +-->  %2s  %-25s\n", $sw, $db_switch_output_port{$sw}, $db_switch_parent{$sw}->{port_hr}, $db_switch_parent{$sw}->{'switch'};
     2525         printf "%-28s %8s  +-->  %8s  %-25s\n", $sw, $db_switch_output_port{$sw}, $db_switch_parent{$sw}->{port_hr}, $db_switch_parent{$sw}->{'switch'};
    25262526         }
    25272527      else {
    2528          printf "%-28s  %2s  +-->  router\n", $sw, $db_switch_output_port{$sw};
     2528         printf "%-28s %8s  +-->  %8s  router\n", $sw, $db_switch_output_port{$sw}, '';
    25292529         }
    25302530      }
     
    25402540            }
    25412541         else {
    2542             printf "%-28s %8s  <--+            %-25s\n", $sw_connect, $port_connect, $sw;
     2542            printf "%-28s %8s  <--+  %8s  %-25s\n", $sw_connect, $port_connect, '', $sw;
    25432543            }
    25442544         }
Note: See TracChangeset for help on using the changeset viewer.