(self, iff)
removes all route entries that uses 'iff' interface.
removes all route entries that uses 'iff' interface.
removes all route entries that uses iff interface .
def ifdel(self, iff):
        """ removes all route entries that uses 'iff' interface. """
        new_routes=[]
        for rt in self.routes:
            if rt[3] != iff:
                new_routes.append(rt)
        self.invalidate_cache()
        self.routes = new_routes
def ifdel ( self , iff ) : new_routes = [ ] for rt in self . routes : if rt [ 3 ] != iff : new_routes . append ( rt ) self . invalidate_cache ( ) self . routes = new_routes