mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
auto-t: hwsim.py: add Enabled property
This commit is contained in:
parent
382bbf1861
commit
f328d62f55
@ -142,6 +142,16 @@ class Rule(HwsimDBusAbstract):
|
||||
reply_handler=self._success, error_handler=self._failure)
|
||||
self._wait_for_async_op()
|
||||
|
||||
@property
|
||||
def enabled(self):
|
||||
return self._properties['Enabled']
|
||||
|
||||
@enabled.setter
|
||||
def enabled(self, value):
|
||||
self._prop_proxy.Set(self._iface_name, 'Enabled', value,
|
||||
reply_handler=self._success, error_handler=self._failure)
|
||||
self._wait_for_async_op()
|
||||
|
||||
def remove(self):
|
||||
self._iface.Remove(reply_handler=self._success,
|
||||
error_handler=self._failure)
|
||||
|
Loading…
Reference in New Issue
Block a user