From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3394710859097393100==" MIME-Version: 1.0 From: James Prestwood Subject: [PATCH 09/10] auto-t: add 'Delay' property to hwsim python module Date: Tue, 02 Jun 2020 10:30:20 -0700 Message-ID: <20200602173021.20085-10-prestwoj@gmail.com> In-Reply-To: <20200602173021.20085-1-prestwoj@gmail.com> List-Id: To: iwd@lists.01.org --===============3394710859097393100== 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 --===============3394710859097393100==--