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