diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py index 26092379..599a842e 100755 --- a/autotests/util/hwsim.py +++ b/autotests/util/hwsim.py @@ -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)