diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-06 07:51:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-08-06 07:51:39 +0000 |
commit | 593ffd6b9dc008e81ed95579a0f56c49bf3e782f (patch) | |
tree | b3a10caf7583dc08b7beed1a329f3b65a1dffe33 /stafd.py | |
parent | Adding upstream version 2.3~rc2. (diff) | |
download | nvme-stas-593ffd6b9dc008e81ed95579a0f56c49bf3e782f.tar.xz nvme-stas-593ffd6b9dc008e81ed95579a0f56c49bf3e782f.zip |
Adding upstream version 2.3~rc3.upstream/2.3_rc3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'stafd.py')
-rwxr-xr-x | stafd.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -70,9 +70,10 @@ if __name__ == '__main__': transport: str, traddr: str, trsvcid: str, + subsysnqn: str, host_traddr: str, host_iface: str, - subsysnqn: str, + host_nqn: str, device: str, ): '''@brief Signal sent when log pages have changed.''' @@ -108,17 +109,17 @@ if __name__ == '__main__': return json.dumps(info) def controller_info( # pylint: disable=no-self-use,too-many-arguments - self, transport, traddr, trsvcid, host_traddr, host_iface, subsysnqn + self, transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn ) -> str: '''@brief D-Bus method used to return information about a controller''' - controller = STAF.get_controller(transport, traddr, trsvcid, host_traddr, host_iface, subsysnqn) + controller = STAF.get_controller(transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn) return json.dumps(controller.info()) if controller else '{}' def get_log_pages( # pylint: disable=no-self-use,too-many-arguments - self, transport, traddr, trsvcid, host_traddr, host_iface, subsysnqn + self, transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn ) -> list: '''@brief D-Bus method used to retrieve the discovery log pages from one controller''' - controller = STAF.get_controller(transport, traddr, trsvcid, host_traddr, host_iface, subsysnqn) + controller = STAF.get_controller(transport, traddr, trsvcid, subsysnqn, host_traddr, host_iface, host_nqn) return controller.log_pages() if controller else list() def get_all_log_pages(self, detailed) -> str: # pylint: disable=no-self-use |