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
393 B
Python
Executable File
13 lines
393 B
Python
Executable File
def add_ip_address(client, args):
|
|
params = {'ifc_index': args.ifc_index, 'ip_address': args.ip_addr}
|
|
return client.call('add_ip_address', params)
|
|
|
|
|
|
def delete_ip_address(client, args):
|
|
params = {'ifc_index': args.ifc_index, 'ip_address': args.ip_addr}
|
|
return client.call('delete_ip_address', params)
|
|
|
|
|
|
def get_interfaces(client, args):
|
|
return client.call('get_interfaces')
|