3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

auto-t: hwsim.py: add Enabled property

This commit is contained in:
James Prestwood 2021-08-18 15:09:30 -07:00 committed by Denis Kenzior
parent 382bbf1861
commit f328d62f55

View File

@ -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)