Sync support network type for provider network
Now heat only supports 'vlan' and 'flat' network type for OS::Neutron::ProviderNet, this will add all other supported network types: 'vxlan', 'local', 'gre' and 'geneve'. Change-Id: If7cb4fbc83f5aa62a0b73e003ff23ec2b40b2ded Closes-Bug: #1692445
This commit is contained in:
parent
86a1cc8c47
commit
4e6bb6febc
|
@ -51,6 +51,12 @@ class ProviderNet(net.Net):
|
|||
'status', 'subnets',
|
||||
)
|
||||
|
||||
NETWORK_TYPES = (
|
||||
LOCAL, VLAN, VXLAN, GRE, GENEVE, FLAT
|
||||
) = (
|
||||
'local', 'vlan', 'vxlan', 'gre', 'geneve', 'flat'
|
||||
)
|
||||
|
||||
properties_schema = {
|
||||
NAME: net.Net.properties_schema[NAME],
|
||||
PROVIDER_NETWORK_TYPE: properties.Schema(
|
||||
|
@ -60,7 +66,7 @@ class ProviderNet(net.Net):
|
|||
update_allowed=True,
|
||||
required=True,
|
||||
constraints=[
|
||||
constraints.AllowedValues(['vlan', 'flat']),
|
||||
constraints.AllowedValues(NETWORK_TYPES),
|
||||
]
|
||||
),
|
||||
PROVIDER_PHYSICAL_NETWORK: properties.Schema(
|
||||
|
|
Loading…
Reference in New Issue