Content-Type: multipart/mixed; boundary="===============2832846907419418833==" MIME-Version: 1.0 From: James Prestwood Subject: [PATCH v2 3/4] auto-t: add 'Delay' property to hwsim python module Date: Fri, 12 Jun 2020 09:20:24 -0700 Message-ID: <20200612162025.6996-3-prestwoj@gmail.com> In-Reply-To: <20200612162025.6996-1-prestwoj@gmail.com> List-Id: To: iwd@lists.01.org --===============2832846907419418833== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable --- autotests/util/hwsim.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py index 4d3748b1..6d2b3e8f 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=3Dself._success, error_handler=3Dself._failure) -- = 2.21.1 --===============2832846907419418833==--