Changeset 272


Ignore:
Timestamp:
Sep 15, 2017, 10:41:37 PM (7 years ago)
Author:
g7moreau
Message:
  • Some few last 'port' -> 'port_id'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r271 r272  
    597597         $ret->{$sw->{'hostname'}}{'hostname'}    = $sw->{'hostname'};
    598598         $ret->{$sw->{'hostname'}}{'description'} = $sw->{'description'};
    599          $ret->{$sw->{'hostname'}}{'port'}        = $swport_id;
     599         $ret->{$sw->{'hostname'}}{'port_id'}     = $swport_id;
    600600         $ret->{$sw->{'hostname'}}{'port_hr'}     = $swport_hr;
    601601         }
     
    25372537         my $switch = $where{$ip_router}->{$switch_detected};
    25382538
    2539          next ALL_SWITCH_CONNECTED if $switch->{'port'} eq '0';
     2539         next ALL_SWITCH_CONNECTED if $switch->{'port_id'} eq '0';
    25402540
    25412541         $db_switch_output_port{$switch->{'hostname'}} = $switch->{'port_hr'};
     
    26102610         print "VERBOSE_6: $db_switch_ip_hostnamefq{$ip} -> $switch->{'hostname'} : $switch->{'port_hr'}\n" if $verbose;
    26112611
    2612          next if $switch->{'port'}     eq '0';
     2612         next if $switch->{'port_id'}  eq '0';
    26132613         next if $switch->{'port_hr'}  eq $db_switch_output_port{$switch->{'hostname'}};
    26142614         next if $switch->{'hostname'} eq $db_switch_ip_hostnamefq{$ip}; # $computerdb->{$ip}{'hostname'};
     
    28672867   for my $sw (sort keys %db_switch_output_port) {
    28682868      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'};
    28702870         }
    28712871      else {
Note: See TracChangeset for help on using the changeset viewer.