summaryrefslogtreecommitdiffstats
path: root/python/netlink/route/link.py
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-07-21 15:52:43 (GMT)
committerThomas Graf <tgraf@suug.ch>2011-07-21 15:52:43 (GMT)
commit20e979765249206f48ec5a9427f38123e7b8af29 (patch)
treec56d0f0417962539614e490d889033dbe2394469 /python/netlink/route/link.py
parentbf1b5d28c01a5c21f2432fdb56ad69bbf19cd288 (diff)
downloadlibnl-20e979765249206f48ec5a9427f38123e7b8af29.zip
libnl-20e979765249206f48ec5a9427f38123e7b8af29.tar.gz
libnl-20e979765249206f48ec5a9427f38123e7b8af29.tar.bz2
use rtnl_link_set/get_type()
Diffstat (limited to 'python/netlink/route/link.py')
-rw-r--r--python/netlink/route/link.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/netlink/route/link.py b/python/netlink/route/link.py
index c4eb20c..e613f2e 100644
--- a/python/netlink/route/link.py
+++ b/python/netlink/route/link.py
@@ -386,11 +386,11 @@ class Link(netlink.Object):
@property
def type(self):
"""Link type"""
- return capi.rtnl_link_get_info_type(self._rtnl_link)
+ return capi.rtnl_link_get_type(self._rtnl_link)
@type.setter
def type(self, value):
- if capi.rtnl_link_set_info_type(self._rtnl_link, value) < 0:
+ if capi.rtnl_link_set_type(self._rtnl_link, value) < 0:
raise NameError("unknown info type")
self._module_lookup('netlink.route.links.' + value)