0f6b418385
Add a module that displays the status of all NICs (interface name, list of IPs and state). In its status, it also exposes whether it's a WiFi or a wired NIC. For this functionality, additional code was implemented to allow a module to add multiple elements to the bar at once. The framework calls the module until its "next()" method return False.
21 lines
335 B
Python
21 lines
335 B
Python
|
|
class Module(object):
|
|
def __init__(self, args):
|
|
pass
|
|
|
|
def data(self):
|
|
pass
|
|
|
|
def critical(self):
|
|
return False
|
|
|
|
def warning(self):
|
|
return False
|
|
|
|
def state(self):
|
|
return "default"
|
|
|
|
def next(self):
|
|
return False
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|