fix /dev/shm/mac2switch mac formatting
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Jul 2018 09:32:20 +0000 (11:32 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Jul 2018 09:32:20 +0000 (11:32 +0200)
snmp-topology.pl

index c6ce629..9973442 100755 (executable)
@@ -53,7 +53,7 @@ foreach my $file ( @dumps ) {
 
 open(my $fh, '>', '/dev/shm/mac2sw');
 foreach my $mac ( keys %{ $stat->{_mac2sw} } ) {
-       print $fh $mac, " ", macfmt( $stat->{_mac2sw}->{$mac} ), "\n";
+       print $fh macfmt($mac), " ", $stat->{_mac2sw}->{$mac}, "\n";
 };
 
 my $s = $stat->{_sw_mac_port_vlan};