File: dummy.py

package info (click to toggle)
libnl3 3.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,608 kB
  • sloc: ansic: 65,616; sh: 4,669; python: 3,702; makefile: 997; cpp: 813; yacc: 480; lex: 210
file content (26 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (6)
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
26
#
# Copyright (c) 2011 Thomas Graf <tgraf@suug.ch>
#

"""Dummy

"""
from __future__ import absolute_import

__version__ = '1.0'
__all__ = [
    'init',
]


class DummyLink(object):
    def __init__(self, link):
        self._rtnl_link = link

    @staticmethod
    def brief():
        return 'dummy'

def init(link):
    link.dummy = DummyLink(link._rtnl_link)
    return link.dummy