(self, dst, gw=None)
Ex: 
        delt(dst="::/0") 
        delt(dst="2001:db8:cafe:f000::/56") 
        delt(dst="2001:db8:cafe:f000::/56", gw="2001:db8:deca::1")
Ex: 
        delt(dst="::/0") 
        delt(dst="2001:db8:cafe:f000::/56") 
        delt(dst="2001:db8:cafe:f000::/56", gw="2001:db8:deca::1")
Ex : delt ( dst = :: / 0 ) delt ( dst = 2001 : db8 : cafe : f000 :: / 56 ) delt ( dst = 2001 : db8 : cafe : f000 :: / 56 gw = 2001 : db8 : deca :: 1 )
def delt(self, dst, gw=None):
        """ Ex: 
        delt(dst="::/0") 
        delt(dst="2001:db8:cafe:f000::/56") 
        delt(dst="2001:db8:cafe:f000::/56", gw="2001:db8:deca::1") 
        """
        tmp = dst+"/128"
        dst, plen = tmp.split('/')[:2]
        dst = in6_ptop(dst)
        plen = int(plen)
        l = filter(lambda x: in6_ptop(x[0]) == dst and x[1] == plen, self.routes)
        if gw:
            gw = in6_ptop(gw)
            l = filter(lambda x: in6_ptop(x[0]) == gw, self.routes)
        if len(l) == 0:
            warning("No matching route found")
        elif len(l) > 1:
            warning("Found more than one match. Aborting.")
        else:
            i=self.routes.index(l[0])
            self.invalidate_cache()
            del(self.routes[i])
def delt ( self , dst , gw = None ) : tmp = dst + "/128" dst , plen = tmp . split ( '/' ) [ : 2 ] dst = in6_ptop ( dst ) plen = int ( plen ) l = filter ( lambda x : in6_ptop ( x [ 0 ] ) == dst and x [ 1 ] == plen , self . routes ) if gw : gw = in6_ptop ( gw ) l = filter ( lambda x : in6_ptop ( x [ 0 ] ) == gw , self . routes ) if len ( l ) == 0 : warning ( "No matching route found" ) elif len ( l ) > 1 : warning ( "Found more than one match. Aborting." ) else : i = self . routes . index ( l [ 0 ] ) self . invalidate_cache ( ) del ( self . routes [ i ] )