2017-06-06 21:22:03 +00:00
|
|
|
from client import print_dict, print_array, int_arg
|
|
|
|
|
|
|
|
|
|
|
|
def add_ip_address(args):
|
|
|
|
params = {'ifc_index': args.ifc_index, 'ip_address': args.ip_addr}
|
2018-02-05 20:29:05 +00:00
|
|
|
args.client.call('add_ip_address', params)
|
2017-06-06 21:22:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
def delete_ip_address(args):
|
|
|
|
params = {'ifc_index': args.ifc_index, 'ip_address': args.ip_addr}
|
2018-02-05 20:29:05 +00:00
|
|
|
args.client.call('delete_ip_address', params)
|
2017-06-06 21:22:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
def get_interfaces(args):
|
2018-02-05 20:29:05 +00:00
|
|
|
print_dict(args.client.call('get_interfaces'))
|