Example #1
0
	def uninstall(self):	
		self._uninstall_ifup()
		self._kill_dhcp()
		self._restore_iptables()
		try:
			destroy_bridge()
		except BridgeException, msg:
			dprint("Unable to destroy bridge:", msg)
Example #2
0
    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()
Example #3
0
	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()