|
17 | 17 | - name: Check valid input for edpm_ovs_dpdk_pmd_core_list |
18 | 18 | ansible.builtin.fail: |
19 | 19 | msg: "List of PMD cores cannot be empty - edpm_ovs_dpdk_pmd_core_list" |
20 | | - when: not edpm_ovs_dpdk_pmd_core_list|string or edpm_ovs_dpdk_pmd_core_list == 'null' |
| 20 | + when: edpm_ovs_dpdk_pmd_core_list|string|length == 0 or edpm_ovs_dpdk_pmd_core_list == 'null' |
21 | 21 |
|
22 | 22 | - name: PMD cores config |
23 | | - when: edpm_ovs_dpdk_pmd_core_list|string |
| 23 | + when: edpm_ovs_dpdk_pmd_core_list|string|length > 0 |
24 | 24 | block: |
25 | 25 | - name: Apply PMD cores config |
26 | 26 | ansible.builtin.set_fact: |
|
47 | 47 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(dpdk_extra) }}" |
48 | 48 |
|
49 | 49 | - name: Set socket-mem and socket-limit config |
50 | | - when: edpm_ovs_dpdk_socket_memory|string |
| 50 | + when: edpm_ovs_dpdk_socket_memory|string|length > 0 |
51 | 51 | block: |
52 | 52 | - name: Apply socket-mem config |
53 | 53 | ansible.builtin.set_fact: |
|
64 | 64 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(dpdk_socket_mem) | combine(dpdk_socket_limit) }}" |
65 | 65 |
|
66 | 66 | - name: Set Revalidator threads config |
67 | | - when: edpm_ovs_dpdk_revalidator_cores|string |
| 67 | + when: edpm_ovs_dpdk_revalidator_cores|string|length > 0 |
68 | 68 | block: |
69 | 69 | - name: Apply Revalidator threads config |
70 | 70 | ansible.builtin.set_fact: |
|
76 | 76 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(n_revalidator_threads) }}" |
77 | 77 |
|
78 | 78 | - name: Set Handler threads config |
79 | | - when: edpm_ovs_dpdk_handler_cores|string |
| 79 | + when: edpm_ovs_dpdk_handler_cores|string|length > 0 |
80 | 80 | block: |
81 | 81 | - name: Apply Handler threads config |
82 | 82 | ansible.builtin.set_fact: |
|
88 | 88 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(n_handler_threads) }}" |
89 | 89 |
|
90 | 90 | - name: Set EMC Insertion Probability config |
91 | | - when: edpm_ovs_dpdk_emc_insertion_probablity|string |
| 91 | + when: edpm_ovs_dpdk_emc_insertion_probablity|string|length > 0 |
92 | 92 | block: |
93 | 93 | - name: Apply EMC Insertion Probability config |
94 | 94 | ansible.builtin.set_fact: |
|
149 | 149 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(pmd_auto_lb) }}" |
150 | 150 |
|
151 | 151 | - name: Set minimum PMD thread load threshold |
152 | | - when: edpm_ovs_dpdk_pmd_load_threshold|string |
| 152 | + when: edpm_ovs_dpdk_pmd_load_threshold|string|length > 0 |
153 | 153 | block: |
154 | 154 | - name: Apply minimum PMD thread load threshold |
155 | 155 | ansible.builtin.set_fact: |
|
161 | 161 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(pmd_auto_lb_load_threshold) }}" |
162 | 162 |
|
163 | 163 | - name: Set PMD load variance improvement threshold |
164 | | - when: edpm_ovs_dpdk_pmd_improvement_threshold|string |
| 164 | + when: edpm_ovs_dpdk_pmd_improvement_threshold|string|length > 0 |
165 | 165 | block: |
166 | 166 | - name: Apply PMD load variance improvement threshold |
167 | 167 | ansible.builtin.set_fact: |
|
173 | 173 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(pmd_auto_lb_improvement_threshold) }}" |
174 | 174 |
|
175 | 175 | - name: Set PMD auto load balancing interval |
176 | | - when: edpm_ovs_dpdk_pmd_rebal_interval|string |
| 176 | + when: edpm_ovs_dpdk_pmd_rebal_interval|string|length > 0 |
177 | 177 | block: |
178 | 178 | - name: Apply PMD auto load balancing interval |
179 | 179 | ansible.builtin.set_fact: |
|
185 | 185 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(pmd_auto_lb_rebal_interval) }}" |
186 | 186 |
|
187 | 187 | - name: OVN bridge datapath type config |
188 | | - when: edpm_ovn_datapath_type|string |
| 188 | + when: edpm_ovn_datapath_type|string|length > 0 |
189 | 189 | block: |
190 | 190 | - name: Apply PMD cores config |
191 | 191 | ansible.builtin.set_fact: |
|
197 | 197 | edpm_ovs_external_ids: "{{ {} | combine(ovn_bridge_datapath_type) }}" |
198 | 198 |
|
199 | 199 | - name: Set shared memory pool config |
200 | | - when: edpm_ovs_dpdk_shared_mem_pool|string |
| 200 | + when: edpm_ovs_dpdk_shared_mem_pool|string|length > 0 |
201 | 201 | block: |
202 | 202 | - name: Apply shared memory pool config |
203 | 203 | ansible.builtin.set_fact: |
|
209 | 209 | edpm_ovs_other_config: "{{ edpm_ovs_other_config | combine(dpdk_shared_mem_pool) }}" |
210 | 210 |
|
211 | 211 | - name: Set PMD maximum sleep time |
212 | | - when: edpm_ovs_dpdk_pmd_sleep_max|string |
| 212 | + when: edpm_ovs_dpdk_pmd_sleep_max|string|length > 0 |
213 | 213 | block: |
214 | 214 | - name: Apply PMD maximum sleep time |
215 | 215 | ansible.builtin.set_fact: |
|
0 commit comments