NSXV: retrieve DNS IPs from subnet correctly

subnet['dns_nameservers'] is a list of strings, not dictionaries.

Change-Id: I929f5ab4d1eb3d538b9e50d08d13554575eab99b
This commit is contained in:
Kobi Samoray 2021-05-13 15:50:59 +03:00
parent 61bcb1e4ba
commit fb9edf9fc1
1 changed files with 1 additions and 2 deletions

View File

@ -1031,8 +1031,7 @@ class EdgeManager(object):
# Set gateway for static binding
static_config['defaultGateway'] = subnet['gateway_ip']
# set primary and secondary dns
name_servers = [dns['address']
for dns in subnet['dns_nameservers']]
name_servers = subnet['dns_nameservers']
# if no nameservers have been configured then use the ones
# defined in the configuration
name_servers = name_servers or cfg.CONF.nsxv.nameservers