예제 #1
0
    def uninstall(self):
        if self.installed:
            req = qdisc.delrequest(self.bufdevno, self.handle)
            self.rth.talk(req.pack())
            self.installed = False

        self.bufdev.uninstall()
        self.pool.put(self.bufdev)
예제 #2
0
    def uninstall(self):
        if self.installed:
            try:
                req = qdisc.delrequest(self.bufdevno, self.handle)
                self.rth.talk(req.pack())
            except IOError, e:
                pass
            self.installed = False

            try:
                self.bufdev.uninstall()
            except util.PipeException, e:
                pass