blob: 6c96617c87aee4b8fcec2294872e3ed208322656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#
# Copyright (c) 2011 Thomas Graf <tgraf@suug.ch>
#
"""Dummy
"""
from __future__ import absolute_import
__version__ = "1.0"
__all__ = ['init']
from ... import core as netlink
from .. import capi as capi
class DummyLink(object):
def __init__(self, link):
self._rtnl_link = link
def brief(self):
return 'dummy'
def init(link):
link.dummy = DummyLink(link._rtnl_link)
return link.dummy
|