aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2020-06-12 12:14:13 -0700
committerDenis Kenzior <denkenz@gmail.com>2020-06-12 15:04:40 -0500
commitcb35e9fe6549822a73e32a6d88b96dfd86c4f9e6 (patch)
treedf3064a963e22119adc307b62a9747e6e84bcd59
parent248190b0ed42d99a4ddc05bd6fa5da455795cc2b (diff)
downloadiwd-cb35e9fe6549822a73e32a6d88b96dfd86c4f9e6.tar.gz
auto-t: add 'Delay' property to hwsim python module
-rwxr-xr-xautotests/util/hwsim.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py
index 4d3748b12..6d2b3e8f7 100755
--- a/autotests/util/hwsim.py
+++ b/autotests/util/hwsim.py
@@ -112,6 +112,14 @@ class Rule(HwsimDBusAbstract):
def drop(self, value):
self._prop_proxy.Set(self._iface_name, 'Drop', dbus.Boolean(value))
+ @property
+ def delay(self):
+ return int(self._properties['Delay'])
+
+ @delay.setter
+ def delay(self, value):
+ self._prop_proxy.Set(self._iface_name, 'Delay', dbus.UInt32(value))
+
def remove(self):
self._iface.Remove(reply_handler=self._success,
error_handler=self._failure)