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

auto-t: hwsim.py: add match_times property

This commit is contained in:
James Prestwood 2021-09-07 14:14:43 -07:00 committed by Denis Kenzior
parent f2197fa06b
commit 06ee649a91

View File

@ -153,6 +153,14 @@ class Rule(HwsimDBusAbstract):
reply_handler=self._success, error_handler=self._failure)
self._wait_for_async_op()
@property
def match_times(self):
return self._properties['MatchTimes']
@match_times.setter
def match_times(self, value):
self._prop_proxy.Set(self._iface_name, 'MatchTimes', dbus.UInt16(value))
def remove(self):
self._iface.Remove(reply_handler=self._success,
error_handler=self._failure)