diff options
author | David Ward <david.ward@ll.mit.edu> | 2023-08-30 00:54:19 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-08-30 06:08:31 (GMT) |
commit | 9aab12dff8e89b7da826c5c0826ef13c71963e28 (patch) | |
tree | 3d633b8790cd00e9cf0e5c353c16aa4553de965d | |
parent | 6b2533c02813ce21b27ea8318fbe1af95652a39e (diff) | |
download | libnl-9aab12dff8e89b7da826c5c0826ef13c71963e28.zip libnl-9aab12dff8e89b7da826c5c0826ef13c71963e28.tar.gz libnl-9aab12dff8e89b7da826c5c0826ef13c71963e28.tar.bz2 |
python: Use correct decorator syntax in HTBQdisc
Fixes: 87d370912ca8 ("netlink.nlattr re-implemented in more pythonic way")
https://github.com/thom311/libnl/pull/359
-rw-r--r-- | python/netlink/route/qdisc/htb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/netlink/route/qdisc/htb.py b/python/netlink/route/qdisc/htb.py index baacce6..0dc70f4 100644 --- a/python/netlink/route/qdisc/htb.py +++ b/python/netlink/route/qdisc/htb.py @@ -28,7 +28,7 @@ class HTBQdisc(object): capi.rtnl_htb_set_defcls(self._qdisc._rtnl_qdisc, int(value)) @property - @netlink.nlattr("r2q", type=int) + @netlink.nlattr(type=int) def r2q(self): return capi.rtnl_htb_get_rate2quantum(self._qdisc._rtnl_qdisc) |