def uninstall(self): self._uninstall_ifup() self._kill_dhcp() self._restore_iptables() try: destroy_bridge() except BridgeException, msg: dprint("Unable to destroy bridge:", msg)
def remove_settings(self): dprint(self) if self.dhcp_handler: self.dhcp_handler.do_remove() try: destroy_bridge("pan1") except: pass self.unlock("ifconfig") self.del_ipt_rules() self.store()