Changeset 199
- Timestamp:
- Jan 25, 2017, 11:00:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r198 r199 7 7 use strict; 8 8 use warnings; 9 use version; our $VERSION = qv('0.5. 7');9 use version; our $VERSION = qv('0.5.8'); 10 10 11 11 use Readonly; … … 2154 2154 for my $one_switch (@list_all_switch) { 2155 2155 my %resol_arp = resolve_ip_arp_host($one_switch, q{*}, q{low}); # arp resolution 2156 if (exists $SWITCH_DB{$one_switch}{'fake-ip'}) { 2157 print "WARNING: fake ip on switch $one_switch -> $SWITCH_DB{$one_switch}{'fake-ip'} / $resol_arp{ipv4_address}\n" if $verbose; 2158 my %resol_arp_alt = resolve_ip_arp_host($SWITCH_DB{$one_switch}{'fake-ip'}, q{*}, q{low}); # arp resolution 2159 if ($resol_arp_alt{mac_address} ne 'unknow') { 2160 $resol_arp{mac_address} = $resol_arp_alt{mac_address}; 2161 $resol_arp{interface} = $resol_arp_alt{interface}; 2162 $resol_arp{ipv4_address} .= '*'; 2163 } 2164 } 2156 2165 print "Info: switch loop $one_switch\n" if $verbose; 2157 2166 next ALL_SWITCH if $resol_arp{mac_address} eq 'unknow'; … … 2179 2188 2180 2189 ALL_SWITCH_IP_ADDRESS: 2181 for my $ip (Net::Netmask::sort_by_ip_address(@list_switch_ipv4)) { 2190 for my $ip (@list_switch_ipv4) { 2191 # for my $ip (Net::Netmask::sort_by_ip_address(@list_switch_ipv4)) { 2182 2192 2183 2193 print "VERBOSE_5: loop on $db_switch_ip_hostnamefq{$ip}\n" if $verbose;
Note: See TracChangeset
for help on using the changeset viewer.