NSXv3: Add support for dns-integration extension
Change-Id: I54b3d944f4b976ced5fd4d4f6c5d4b7fc8911228
This commit is contained in:
parent
8e84dcb77e
commit
79220ec00c
@ -54,10 +54,14 @@ class NsxLibNativeDhcp(utils.NsxLibApiBase):
|
||||
options = {'option121': {'static_routes': host_routes}}
|
||||
name = utils.get_name_and_uuid(network['name'] or 'dhcpserver',
|
||||
network['id'])
|
||||
dns_domain = network.get('dns_domain')
|
||||
domain_name = dns_domain['dns_domain'] if dns_domain else (
|
||||
self.nsxlib_config.dns_domain)
|
||||
|
||||
return {'name': name,
|
||||
'server_ip': server_ip,
|
||||
'dns_nameservers': dns_nameservers,
|
||||
'domain_name': self.nsxlib_config.dns_domain,
|
||||
'domain_name': domain_name,
|
||||
'gateway_ip': gateway_ip,
|
||||
'options': options,
|
||||
'tags': tags}
|
||||
|
Loading…
x
Reference in New Issue
Block a user