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
1 changed files with 8 additions and 0 deletions

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)