Changeset 272
- Timestamp:
- Sep 15, 2017, 10:41:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r271 r272 597 597 $ret->{$sw->{'hostname'}}{'hostname'} = $sw->{'hostname'}; 598 598 $ret->{$sw->{'hostname'}}{'description'} = $sw->{'description'}; 599 $ret->{$sw->{'hostname'}}{'port '}= $swport_id;599 $ret->{$sw->{'hostname'}}{'port_id'} = $swport_id; 600 600 $ret->{$sw->{'hostname'}}{'port_hr'} = $swport_hr; 601 601 } … … 2537 2537 my $switch = $where{$ip_router}->{$switch_detected}; 2538 2538 2539 next ALL_SWITCH_CONNECTED if $switch->{'port '} eq '0';2539 next ALL_SWITCH_CONNECTED if $switch->{'port_id'} eq '0'; 2540 2540 2541 2541 $db_switch_output_port{$switch->{'hostname'}} = $switch->{'port_hr'}; … … 2610 2610 print "VERBOSE_6: $db_switch_ip_hostnamefq{$ip} -> $switch->{'hostname'} : $switch->{'port_hr'}\n" if $verbose; 2611 2611 2612 next if $switch->{'port '}eq '0';2612 next if $switch->{'port_id'} eq '0'; 2613 2613 next if $switch->{'port_hr'} eq $db_switch_output_port{$switch->{'hostname'}}; 2614 2614 next if $switch->{'hostname'} eq $db_switch_ip_hostnamefq{$ip}; # $computerdb->{$ip}{'hostname'}; … … 2867 2867 for my $sw (sort keys %db_switch_output_port) { 2868 2868 if (exists $db_switch_parent{$sw}) { 2869 # printf " \"%s:%s\" -> \"%s:%s\"\n", $sw, $db_switch_output_port{$sw}, $db_switch_parent{$sw}->{'switch'}, $db_switch_parent{$sw}->{'port '};2869 # printf " \"%s:%s\" -> \"%s:%s\"\n", $sw, $db_switch_output_port{$sw}, $db_switch_parent{$sw}->{'switch'}, $db_switch_parent{$sw}->{'port_id'}; 2870 2870 } 2871 2871 else {
Note: See TracChangeset
for help on using the changeset viewer.