Changeset 105 for trunk/klask


Ignore:
Timestamp:
Dec 12, 2011, 2:19:48 PM (12 years ago)
Author:
g7moreau
Message:
  • Clean Float between VLAN
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r104 r105  
    869869         
    870870         if ( $mactimedb{$ip_mac}->{timestamp} - $ip_timestamp > $timestamp_barrier
    871             and not $mactimedb{$ip_mac}->{hostname_fq} =~ m/^float/ ) {
     871            and (
     872               not $mactimedb{$ip_mac}->{hostname_fq} =~ m/^float/
     873               or $ip_hostname_fq =~ m/^float/
     874               )) {
    872875            print "remove ip $ip\n" if $verbose;
    873876            delete $computerdb->{$ip};
     
    876879
    877880         if ( $ip_timestamp - $mactimedb{$ip_mac}->{timestamp} > $timestamp_barrier
    878             and not $ip_hostname_fq =~ m/^float/ ) {
     881            and (
     882               not $ip_hostname_fq =~ m/^float/
     883               or $mactimedb{$ip_mac}->{hostname_fq} =~ m/^float/
     884               )) {
    879885            print "remove ip ".$mactimedb{$ip_mac}->{ip}."\n" if $verbose;
    880886            delete $computerdb->{$mactimedb{$ip_mac}->{ip}};
Note: See TracChangeset for help on using the changeset viewer.