|
80 | 80 | # (optional) Set probe interval, based on user configuration, value is in ms
|
81 | 81 | # Defaults to 60000
|
82 | 82 | #
|
83 |
| -# [*ovn_openflow_probe_interval*] |
84 |
| -# (optional) The inactivity probe interval of the OpenFlow |
85 |
| -# connection to the OpenvSwitch integration bridge, in |
86 |
| -# seconds. If the value is zero, it disables the connection keepalive feature. |
87 |
| -# If the value is nonzero, then it will be forced to a value of at least 5s. |
88 |
| -# Defaults to 60 |
89 |
| -# |
90 | 83 | # [*ovn_transport_zones*]
|
91 | 84 | # (optional) List of the transport zones to which the chassis belongs to.
|
92 | 85 | # Defaults to empty list
|
|
143 | 136 | # Additional command line options for ovn-controller service
|
144 | 137 | # Defaults to []
|
145 | 138 | #
|
| 139 | +# DEPRECATED PARAMETERS |
| 140 | +# |
| 141 | +# [*ovn_openflow_probe_interval*] |
| 142 | +# (optional) The inactivity probe interval of the OpenFlow |
| 143 | +# connection to the OpenvSwitch integration bridge, in |
| 144 | +# seconds. If the value is zero, it disables the connection keepalive feature. |
| 145 | +# If the value is nonzero, then it will be forced to a value of at least 5s. |
| 146 | +# Defaults to undef |
| 147 | +# |
146 | 148 | class ovn::controller(
|
147 | 149 | String[1] $service_name,
|
148 | 150 | String[1] $package_name,
|
|
163 | 165 | Boolean $enable_dpdk = false,
|
164 | 166 | Optional[Variant[String[1], Array[String[1]]]] $ovn_cms_options = undef,
|
165 | 167 | Integer[0] $ovn_remote_probe_interval = 60000,
|
166 |
| - Integer[0] $ovn_openflow_probe_interval = 60, |
167 |
| - Array[String[1]] $ovn_transport_zones = [], |
| 168 | + Array[String[1]] $ovn_transport_zones = [], |
168 | 169 | Boolean $enable_ovn_match_northd = false,
|
169 | 170 | Variant[Array[String], Hash[String, String]] $ovn_chassis_mac_map = [],
|
170 | 171 | Boolean $ovn_monitor_all = false,
|
|
174 | 175 | Optional[Stdlib::Absolutepath] $ovn_controller_ssl_cert = undef,
|
175 | 176 | Optional[Stdlib::Absolutepath] $ovn_controller_ssl_ca_cert = undef,
|
176 | 177 | Array[String[1]] $ovn_controller_extra_opts = [],
|
| 178 | + # DEPRECATED PARAMETERS |
| 179 | + Optional[Integer[0]] $ovn_openflow_probe_interval = undef, |
177 | 180 | ) {
|
178 | 181 |
|
179 | 182 | if $enable_dpdk and ! $datapath_type {
|
|
231 | 234 | 'external_ids:hostname' => { 'value' => $hostname },
|
232 | 235 | 'external_ids:ovn-bridge' => { 'value' => $ovn_bridge },
|
233 | 236 | 'external_ids:ovn-remote-probe-interval' => { 'value' => $ovn_remote_probe_interval },
|
234 |
| - 'external_ids:ovn-openflow-probe-interval' => { 'value' => $ovn_openflow_probe_interval }, |
235 | 237 | 'external_ids:ovn-monitor-all' => { 'value' => $ovn_monitor_all },
|
236 | 238 | 'external_ids:ovn-ofctrl-wait-before-clear' => { 'value' => $ovn_ofctrl_wait_before_clear },
|
237 | 239 | }
|
238 | 240 |
|
| 241 | + if $ovn_openflow_probe_interval != undef { |
| 242 | + warning("The ovn_openflow_probe_interval parameter was deprecated and \ |
| 243 | +will be removed in a future release.") |
| 244 | + |
| 245 | + $of_probe_interval = { |
| 246 | + 'external_ids:ovn-openflow-probe-interval' => { 'value' => $ovn_openflow_probe_interval }, |
| 247 | + } |
| 248 | + } else { |
| 249 | + $of_probe_interval = { |
| 250 | + 'external_ids:ovn-openflow-probe-interval' => { 'ensure' => 'absent' }, |
| 251 | + } |
| 252 | + } |
| 253 | + |
239 | 254 | if $ovn_encap_ip_default {
|
240 | 255 | $encap_ip_default = {
|
241 | 256 | 'external_ids:ovn-encap-ip-default' => { 'value' => $ovn_encap_ip_default }
|
|
338 | 353 | 'vs_config',
|
339 | 354 | merge(
|
340 | 355 | $config_items,
|
| 356 | + $of_probe_interval, |
341 | 357 | $encap_ip_default,
|
342 | 358 | $cms_options,
|
343 | 359 | $encap_tos,
|
|
0 commit comments