diff --git a/defaults/main.yml b/defaults/main.yml index 562302af..17a0eff5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -202,6 +202,9 @@ horizon_enable_ha_router: False # Provide default DNS servers to use when a subnet is created. horizon_default_dns_nameservers: [] +# Provide list of network types that are available for creation +horizon_network_provider_types: "{{ neutron_ml2_drivers_type | default(['geneve', 'vlan', 'flat']) }}" + # DISALLOW_IFRAME_EMBED can be used to prevent Horizon from being embedded # within an iframe. Legacy browsers are still vulnerable to a Cross-Frame # Scripting (XFS) vulnerability, so this option allows extra security hardening diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index 5e2c64b1..49476f14 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -340,7 +340,7 @@ OPENSTACK_NEUTRON_NETWORK = { # Set which provider network types are supported. Only the network types # in this list will be available to choose from when creating a network. # Network types include local, flat, vlan, gre, and vxlan. - 'supported_provider_types': ['flat', 'vlan', 'vxlan'], + 'supported_provider_types': {{ horizon_network_provider_types | to_json }}, # Set which VNIC types are supported for port binding. Only the VNIC # types in this list will be available to choose from when creating a