3eaf92650b
As an example of how we want the Python wrappers for the RPC interface to look, convert the methods in scripts/rpc/subsystem.py to have explicitly named arguments and pass the JSONRPCClient object explicitly. Change-Id: I9d2e194ce7fde535d323383925f7825ab93909de Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/405500 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
8 lines
194 B
Python
Executable File
8 lines
194 B
Python
Executable File
def get_subsystems(client):
|
|
return client.call('get_subsystems')
|
|
|
|
|
|
def get_subsystem_config(client, name):
|
|
params = {'name': name}
|
|
return client.call('get_subsystem_config', params)
|