Adding upstream version 2.3.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
75324c05ff
commit
b76282b820
24 changed files with 598 additions and 437 deletions
6
stacd.py
6
stacd.py
|
@ -69,7 +69,7 @@ if __name__ == '__main__':
|
|||
return STAC.tron
|
||||
|
||||
@tron.setter
|
||||
def tron(self, value): # pylint: disable=no-self-use
|
||||
def tron(self, value):
|
||||
'''@brief Set Trace ON property'''
|
||||
STAC.tron = value
|
||||
|
||||
|
@ -89,14 +89,14 @@ if __name__ == '__main__':
|
|||
info.update(STAC.info())
|
||||
return json.dumps(info)
|
||||
|
||||
def controller_info( # pylint: disable=too-many-arguments,no-self-use
|
||||
def controller_info( # pylint: disable=too-many-arguments
|
||||
self, transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn
|
||||
) -> str:
|
||||
'''@brief D-Bus method used to return information about a controller'''
|
||||
controller = STAC.get_controller(transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn)
|
||||
return json.dumps(controller.info()) if controller else '{}'
|
||||
|
||||
def list_controllers(self, detailed) -> list: # pylint: disable=no-self-use
|
||||
def list_controllers(self, detailed) -> list:
|
||||
'''@brief Return the list of I/O controller IDs'''
|
||||
return [
|
||||
controller.details() if detailed else controller.controller_id_dict()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue