File: dummy.py

package info (click to toggle)
libnl3 3.2.24-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,876 kB
  • ctags: 9,179
  • sloc: ansic: 41,143; sh: 11,605; python: 3,697; yacc: 476; makefile: 474; 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