File: dummy.py

package info (click to toggle)
libnl3 3.2.27-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 5,548 kB
  • ctags: 11,023
  • sloc: ansic: 50,883; sh: 11,550; python: 3,702; makefile: 607; yacc: 476; cpp: 454; lex: 202
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