|
38 | 38 | # from the neutron.ml2.extension_drivers namespace. |
39 | 39 | # Defaults to $facts['os_service_default'] |
40 | 40 | # |
41 | | -# [*tenant_network_types*] |
42 | | -# (optional) Ordered list of network_types to allocate as tenant networks. |
| 41 | +# [*project_network_types*] |
| 42 | +# (optional) Ordered list of network_types to allocate as project networks. |
43 | 43 | # The value 'local' is only useful for single-box testing |
44 | 44 | # but provides no connectivity between hosts. |
45 | 45 | # Should be an array that can have these elements: |
|
62 | 62 | # |
63 | 63 | # [*network_vlan_ranges*] |
64 | 64 | # (optional) List of <physical_network>:<vlan_min>:<vlan_max> or |
65 | | -# <physical_network> specifying physical_network names |
66 | | -# usable for VLAN provider and tenant networks, as |
67 | | -# well as ranges of VLAN tags on each available for |
68 | | -# allocation to tenant networks. |
| 65 | +# <physical_network> specifying physical_network names usable for VLAN |
| 66 | +# provider and project networks, as well as ranges of VLAN tags on each |
| 67 | +# available for allocation to project networks. |
69 | 68 | # Should be an array with vlan_min = 1 & vlan_max = 4094 (IEEE 802.1Q) |
70 | 69 | # Default to 'physnet1:1000:2999'. |
71 | 70 | # |
72 | 71 | # [*tunnel_id_ranges*] |
73 | 72 | # (optional) Comma-separated list of <tun_min>:<tun_max> tuples |
74 | 73 | # enumerating ranges of GRE tunnel IDs that are |
75 | | -# available for tenant network allocation |
| 74 | +# available for project network allocation |
76 | 75 | # Should be an array with tun_max +1 - tun_min > 1000000 |
77 | 76 | # Default to '20:100'. |
78 | 77 | # |
|
87 | 86 | # [*vni_ranges*] |
88 | 87 | # (optional) Comma-separated list of <vni_min>:<vni_max> tuples |
89 | 88 | # enumerating ranges of VXLAN VNI IDs that are |
90 | | -# available for tenant network allocation. |
| 89 | +# available for project network allocation. |
91 | 90 | # Min value is 0 and Max value is 16777215. |
92 | 91 | # Default to '10:100'. |
93 | 92 | # |
|
122 | 121 | # in the ml2 config. |
123 | 122 | # Defaults to false. |
124 | 123 | # |
| 124 | +# DEPRECATED PARAMETERS |
| 125 | +# |
| 126 | +# [*tenant_network_types*] |
| 127 | +# (optional) Ordered list of network_types to allocate as project networks. |
| 128 | +# The value 'local' is only useful for single-box testing |
| 129 | +# but provides no connectivity between hosts. |
| 130 | +# Should be an array that can have these elements: |
| 131 | +# local, flat, vlan, gre, vxlan |
| 132 | +# Defaults to undef |
| 133 | +# |
125 | 134 | class neutron::plugins::ml2 ( |
126 | 135 | Stdlib::Ensure::Package $package_ensure = 'present', |
127 | 136 | $type_drivers = ['local', 'flat', 'vlan', 'gre', 'vxlan', 'geneve'], |
128 | 137 | $extension_drivers = $facts['os_service_default'], |
129 | | - $tenant_network_types = ['local', 'flat', 'vlan', 'gre', 'vxlan'], |
| 138 | + $project_network_types = ['local', 'flat', 'vlan', 'gre', 'vxlan'], |
130 | 139 | $mechanism_drivers = ['openvswitch'], |
131 | 140 | $flat_networks = '*', |
132 | 141 | $network_vlan_ranges = 'physnet1:1000:2999', |
|
139 | 148 | $max_header_size = $facts['os_service_default'], |
140 | 149 | $overlay_ip_version = $facts['os_service_default'], |
141 | 150 | Boolean $purge_config = false, |
| 151 | + # DEPRECATED PARAMETERS |
| 152 | + $tenant_network_types = undef, |
142 | 153 | ) { |
143 | 154 | include neutron::deps |
144 | 155 | include neutron::params |
|
186 | 197 | neutron_plugin_ml2 { |
187 | 198 | 'ml2/physical_network_mtus': value => join(any2array($physical_network_mtus), ','); |
188 | 199 | 'ml2/type_drivers': value => join(any2array($type_drivers), ','); |
189 | | - 'ml2/tenant_network_types': value => join(any2array($tenant_network_types), ','); |
190 | 200 | 'ml2/mechanism_drivers': value => join(any2array($mechanism_drivers), ','); |
191 | 201 | 'ml2/path_mtu': value => $path_mtu; |
192 | 202 | 'ml2/extension_drivers': value => join(any2array($extension_drivers), ','); |
193 | 203 | 'ml2/overlay_ip_version': value => $overlay_ip_version; |
194 | 204 | 'securitygroup/enable_security_group': value => $enable_security_group; |
195 | 205 | } |
| 206 | + |
| 207 | + if $tenant_network_types != undef { |
| 208 | + warning('The tenant_netwoork_types parameter is deprecated') |
| 209 | + neutron_plugin_ml2 { |
| 210 | + 'ml2/tenant_network_types': value => join(any2array($tenant_network_types), ','); |
| 211 | + 'ml2/project_network_types': value => $facts['os_service_default']; |
| 212 | + } |
| 213 | + } else { |
| 214 | + neutron_plugin_ml2 { |
| 215 | + 'ml2/tenant_network_types': value => $facts['os_service_default']; |
| 216 | + 'ml2/project_network_types': value => join(any2array($project_network_types), ','); |
| 217 | + } |
| 218 | + } |
196 | 219 | } |
0 commit comments