Changeset 15
- Timestamp:
- Jan 31, 2008, 11:58:11 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r14 r15 29 29 @SWITCH = sort { $switch_level{$b->{hostname}} <=> $switch_level{$a->{hostname}} } @{$KLASK_CFG->{switch}}; 30 30 31 my % switch_port_count= ();31 my %SWITCH_PORT_COUNT = (); 32 32 33 33 my %CMD_DB = ( … … 310 310 311 311 for my $sw (@SWITCH) { 312 $ switch_port_count{$sw->{hostname}} = {} if not exists $switch_port_count{$sw->{hostname}};312 $SWITCH_PORT_COUNT{$sw->{hostname}} = {} if not exists $SWITCH_PORT_COUNT{$sw->{hostname}}; 313 313 } 314 314 … … 331 331 $ret->{$sw->{hostname}}{port} = get_human_readable_port($sw->{hostname}, $swport); 332 332 333 $ switch_port_count{$sw->{hostname}}->{$swport}++;333 $SWITCH_PORT_COUNT{$sw->{hostname}}->{$swport}++; 334 334 } 335 335 … … 801 801 for my $switch_detected ( keys %{$where{$ip}} ) { 802 802 803 next DETECTED_SWITCH if not exists $ switch_port_count{ $db_switch_ip_hostname{$ip}};803 next DETECTED_SWITCH if not exists $SWITCH_PORT_COUNT{ $db_switch_ip_hostname{$ip}}; 804 804 805 805 my $switch = $where{$ip}->{$switch_detected};
Note: See TracChangeset
for help on using the changeset viewer.