]> dxcluster.net Git - spider.git/commitdiff
add delete_interface on disconnect R_1_51B
authorminima <minima>
Tue, 24 Aug 2004 08:12:11 +0000 (08:12 +0000)
committerminima <minima>
Tue, 24 Aug 2004 08:12:11 +0000 (08:12 +0000)
perl/DXProt.pm
perl/RouteDB.pm

index 69085f358a146eee342562bf5cfc5b2ae8d9ba4f..c96d787e41ba3f27010ef46b385d72765a84e2df 100644 (file)
@@ -2307,6 +2307,8 @@ sub disconnect
                        eph_del_regex("^PC1[679].*$c");
                }
        }
+
+       RouteDB::delete_interface($call);
        
        # remove them from the pc19list as well
        while (my ($k,$v) = each %pc19list) {
index c9c01ff4544565ea80651a35f78fb0dcd4526622..42cf693f76f65a6d06772b3a68b36aaa131e6979 100644 (file)
@@ -106,6 +106,14 @@ sub delete
        delete $ref->{item}->{$interface} if $ref;
 }
 
+sub delete_interface
+{
+       my $interface = shift;
+       foreach my $ref (values %list) {
+               delete $ref->{item}->{$interface};
+       }
+}
+
 #
 # generic AUTOLOAD for accessors
 #