96dc91d608
Split client out of the args object and pass it as the first parameter to all RPC methods instead. This is a step toward decoupling the rpc/*.py interface from the argparse front end. Change-Id: Ib030862e0c79112e5c9acdde295d68983126a987 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/405502 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>
13 lines
347 B
Python
Executable File
13 lines
347 B
Python
Executable File
def kill_instance(client, args):
|
|
params = {'sig_name': args.sig_name}
|
|
return client.call('kill_instance', params)
|
|
|
|
|
|
def context_switch_monitor(client, args):
|
|
params = {}
|
|
if args.enable:
|
|
params['enabled'] = True
|
|
if args.disable:
|
|
params['enabled'] = False
|
|
return client.call('context_switch_monitor', params)
|