auto-t: add 'Delay' property to hwsim python module

This commit is contained in:
James Prestwood 2020-06-12 12:14:13 -07:00 committed by Denis Kenzior
parent 248190b0ed
commit cb35e9fe65
1 changed files with 8 additions and 0 deletions

View File

@ -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)