summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorNicolas PLANEL <nicolas.planel@enovance.com>2013-10-01 19:58:36 (GMT)
committerThomas Graf <tgraf@suug.ch>2013-10-07 07:50:11 (GMT)
commitf2e6f502eb3585411511a8bfed7b0f6fd8933a22 (patch)
treee3a68f6da68c99f93bfe8fca1dd309b9195476ad /python
parentae7f8cc988d9d5abfaf1639c218e450d015e2ad0 (diff)
downloadlibnl-f2e6f502eb3585411511a8bfed7b0f6fd8933a22.zip
libnl-f2e6f502eb3585411511a8bfed7b0f6fd8933a22.tar.gz
libnl-f2e6f502eb3585411511a8bfed7b0f6fd8933a22.tar.bz2
python: fixup VLANLink() initialization
The varialble name should be link._rtnl_link instead of link._link to get rid of the AttributeError. Traceback (most recent call last): File "examples/test.py", line 11, in <module> eth0 = link.resolve('eth0.800') ... File "/home/ubuntu/libnl/python/build/lib.linux-x86_64-2.7/netlink/route/link.py", line 151, in __init__ self._module_lookup('netlink.route.links.' + self.type) ... File "/home/ubuntu/libnl/python/build/lib.linux-x86_64-2.7/netlink/route/links/vlan.py", line 70, in init link.vlan = VLANLink(link._link) AttributeError: 'Link' object has no attribute '_link' Signed-off-by: Nicolas PLANEL <nicolas.planel@enovance.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'python')
-rw-r--r--python/netlink/route/links/vlan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/netlink/route/links/vlan.py b/python/netlink/route/links/vlan.py
index 70045d5..0ba3781 100644
--- a/python/netlink/route/links/vlan.py
+++ b/python/netlink/route/links/vlan.py
@@ -67,5 +67,5 @@ class VLANLink(object):
return 'vlan-id {0}'.format(self.id)
def init(link):
- link.vlan = VLANLink(link._link)
+ link.vlan = VLANLink(link._rtnl_link)
return link.vlan