Add ha_vip key in set_networking message to comply with api
Change-Id: I97c1976d626a0ac945ca601695771b38727120de
This commit is contained in:
parent
5180e0cd19
commit
c9f9a4f8ab
@ -37,6 +37,7 @@ SERVICE_USERNAME = 'service'
|
||||
SERVICE_PASSWORD = 'service'
|
||||
CONSOLE_USERNAME = 'console'
|
||||
CONSOLE_PASSWORD = 'console'
|
||||
HA_VIP = ''
|
||||
#NAMESERVERS = '192.168.10.6'
|
||||
SEARCH_PATH = 'ods.com'
|
||||
#GATEWAY = '192.168.10.6'
|
||||
@ -196,6 +197,7 @@ status, resp = client.set_networking(
|
||||
gateway=PRESET_VALUES["GATEWAY"],
|
||||
proxy=PRESET_VALUES["PROXY"],
|
||||
ntp_server=PRESET_VALUES["NTP_SERVER"],
|
||||
ha_vip=HA_VIP,
|
||||
management_ip_start=MANAGEMENT_IP_START,
|
||||
management_ip_end=MANAGEMENT_IP_END,
|
||||
management_netmask=MANAGEMENT_NETMASK,
|
||||
|
@ -397,7 +397,8 @@ class Client(object):
|
||||
"""parse arguments to network data."""
|
||||
data = {}
|
||||
possible_keys = [
|
||||
'nameservers', 'search_path', 'gateway', 'proxy', 'ntp_server']
|
||||
'nameservers', 'search_path', 'gateway',
|
||||
'proxy', 'ntp_server', 'ha_vip']
|
||||
for key, value in kwargs.items():
|
||||
if key in possible_keys:
|
||||
data.setdefault('global', {})[key] = value
|
||||
|
Loading…
x
Reference in New Issue
Block a user