Add dns_domain support to OS::Neutron::ProviderNet

It is actually possible to set OS::Neutron::Net-dns_domain but
not OS::Neutron::ProviderNet-dns_domain with heat.   Since this
is allowed using python-neutronclient, there're no reasons to
not allow this using heat.

Change-Id: I5b085e469f3fd24c797d5dcaf39dbe56f6ad5cdf
Task: 36808
This commit is contained in:
David Hill 2019-09-25 15:38:38 -04:00 committed by Zane Bitter
parent 64341a82a2
commit 5bc84d6419
2 changed files with 17 additions and 2 deletions

View File

@ -37,11 +37,11 @@ class ProviderNet(net.Net):
PROPERTIES = (
NAME, PROVIDER_NETWORK_TYPE, PROVIDER_PHYSICAL_NETWORK,
PROVIDER_SEGMENTATION_ID, ADMIN_STATE_UP, SHARED,
PORT_SECURITY_ENABLED, ROUTER_EXTERNAL, TAGS,
PORT_SECURITY_ENABLED, ROUTER_EXTERNAL, DNS_DOMAIN, TAGS,
) = (
'name', 'network_type', 'physical_network',
'segmentation_id', 'admin_state_up', 'shared',
'port_security_enabled', 'router_external', 'tags',
'port_security_enabled', 'router_external', 'dns_domain', 'tags',
)
@ -110,6 +110,15 @@ class ProviderNet(net.Net):
update_allowed=True,
support_status=support.SupportStatus(version='12.0.0')
),
DNS_DOMAIN: properties.Schema(
properties.Schema.STRING,
_('DNS domain associated with this network.'),
constraints=[
constraints.CustomConstraint('dns_domain')
],
update_allowed=True,
support_status=support.SupportStatus(version='14.0.0')
),
}
attributes_schema = {

View File

@ -0,0 +1,6 @@
---
features:
- |
Added ``dns_domain`` property to resource type
``OS::Neutron::ProviderNet``. This specifies the DNS domain to use when
publishing DNS records for ports on this network.