File: dummy.py

package info (click to toggle)
libnl3 3.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,376 kB
  • sloc: ansic: 76,548; sh: 5,210; python: 3,735; makefile: 1,136; cpp: 957; yacc: 487; lex: 218
file content (27 lines) | stat: -rw-r--r-- 385 bytes parent folder | download
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
27
#
# 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