|
21 | 21 |
|
22 | 22 | # CLEAN TEST ENVIRONMENT |
23 | 23 |
|
24 | | -- name: Query all span ansible_group |
| 24 | +- name: Query all access span destination groups |
25 | 25 | cisco.aci.aci_access_span_dst_group: |
26 | 26 | <<: *aci_info |
27 | 27 | state: query |
|
56 | 56 | <<: *add_ansible_group_1 |
57 | 57 | register: nm_add_ansible_group_1 |
58 | 58 |
|
59 | | -- name: Add span ansible_group again |
| 59 | +- name: Add access span destination group type epg again |
60 | 60 | cisco.aci.aci_access_span_dst_group: |
61 | 61 | <<: *add_ansible_group_1 |
62 | 62 | register: nm_add_ansible_group_1_again |
|
101 | 101 | - nm_add_ansible_group_1_again.current.0.spanDestGrp.children.0.spanDest.children.0.spanRsDestEpg.attributes.ver == "ver2" |
102 | 102 | - nm_add_ansible_group_1_again.current.0.spanDestGrp.children.0.spanDest.children.0.spanRsDestEpg.attributes.verEnforced == "no" |
103 | 103 |
|
104 | | -- name: Change span ansible_group |
| 104 | +- name: Change access span destination group type epg |
105 | 105 | cisco.aci.aci_access_span_dst_group: &change_ansible_group_1 |
106 | 106 | <<: *aci_info |
107 | 107 | destination_group: ansible_group_1 |
|
120 | 120 | dscp: "VA" |
121 | 121 | register: change_ansible_group_1 |
122 | 122 |
|
123 | | -- name: Apply same changes to span ansible_group |
| 123 | +- name: Apply same changes to access span destination group type epg |
124 | 124 | cisco.aci.aci_access_span_dst_group: |
125 | 125 | <<: *change_ansible_group_1 |
126 | 126 | register: change_ansible_group_1_again |
|
179 | 179 | - change_ansible_group_1_again.current.0.spanDestGrp.children.0.spanDest.children.0.spanRsDestEpg.attributes.ver == "ver1" |
180 | 180 | - change_ansible_group_1_again.current.0.spanDestGrp.children.0.spanDest.children.0.spanRsDestEpg.attributes.verEnforced == "yes" |
181 | 181 |
|
182 | | -- name: Change span ansible_group path information (error) |
| 182 | +- name: Change access span destination group type epg path information (error) |
183 | 183 | cisco.aci.aci_access_span_dst_group: |
184 | 184 | <<: *add_ansible_group_1 |
185 | 185 | destination_epg: |
|
191 | 191 | register: error_on_path_change_ansible_group_1 |
192 | 192 | ignore_errors: true |
193 | 193 |
|
194 | | -- name: Verify change access span destination group type epg |
| 194 | +- name: Verify change access span destination group type epg path information (error) |
195 | 195 | ansible.builtin.assert: |
196 | 196 | that: |
197 | 197 | - error_on_path_change_ansible_group_1.msg == "APIC Error 105{{':'}} Span source or destination relation target configuration cannot be dynamically modified" |
|
221 | 221 | state: present |
222 | 222 | register: add_ansible_group_3 |
223 | 223 |
|
224 | | -- name: Verify change access span destination group type epg |
| 224 | +- name: Verify add access span destination groups type access interface port and direct port channel |
225 | 225 | ansible.builtin.assert: |
226 | 226 | that: |
227 | 227 | - add_ansible_group_2 is changed |
|
239 | 239 |
|
240 | 240 | # TEST QUERY DESTINATION GROUPS |
241 | 241 |
|
242 | | -- name: Query span ansible_group |
| 242 | +- name: Query one access span destination group |
243 | 243 | cisco.aci.aci_access_span_dst_group: |
244 | 244 | <<: *add_ansible_group_1 |
245 | 245 | state: query |
246 | 246 | register: query_one |
247 | 247 |
|
248 | | -- name: Query all span ansible_group |
| 248 | +- name: Query all access span destination group |
249 | 249 | cisco.aci.aci_access_span_dst_group: |
250 | 250 | <<: *aci_info |
251 | 251 | state: query |
|
262 | 262 |
|
263 | 263 | # TEST REMOVAL DESTINATION GROUPS |
264 | 264 |
|
265 | | -- name: Remove span ansible_group ( check mode ) |
| 265 | +- name: Remove access span destination group type epg ( check mode ) |
266 | 266 | cisco.aci.aci_access_span_dst_group: &remove_ansible_group_1 |
267 | 267 | <<: *add_ansible_group_1 |
268 | 268 | state: absent |
269 | 269 | check_mode: true |
270 | 270 | register: cm_remove_ansible_group_1 |
271 | 271 |
|
272 | | -- name: Remove span ansible_group |
| 272 | +- name: Remove access span destination group type epg |
273 | 273 | cisco.aci.aci_access_span_dst_group: |
274 | 274 | <<: *remove_ansible_group_1 |
275 | 275 | register: nm_remove_ansible_group_1 |
276 | 276 |
|
277 | | -- name: Remove span ansible_group again |
| 277 | +- name: Remove access span destination group type epg again |
278 | 278 | cisco.aci.aci_access_span_dst_group: |
279 | 279 | <<: *remove_ansible_group_1 |
280 | 280 | register: nm_remove_ansible_group_1_again |
281 | 281 |
|
282 | | -- name: Remove span ansible_group_2 |
| 282 | +- name: Remove access span destination group type access interface port |
283 | 283 | cisco.aci.aci_access_span_dst_group: |
284 | 284 | <<: *add_ansible_group_2 |
285 | 285 | state: absent |
286 | 286 | register: nm_remove_ansible_group_2 |
287 | 287 |
|
288 | | -- name: Remove span ansible_group_3 |
| 288 | +- name: Remove access span destination group type access interface direct port channel |
289 | 289 | cisco.aci.aci_access_span_dst_group: |
290 | 290 | <<: *add_ansible_group_3 |
291 | 291 | state: absent |
|
313 | 313 |
|
314 | 314 | # TEST INCORRECT MODULE INPUT |
315 | 315 |
|
316 | | -- name: Mutually exclusive paramters provided together (error) |
| 316 | +- name: Mutually exclusive parameters provided together (error) |
317 | 317 | cisco.aci.aci_access_span_dst_group: |
318 | 318 | <<: *aci_info |
319 | 319 | destination_group: ansible_group_1 |
|
332 | 332 | register: incorrect_input_both_types |
333 | 333 | ignore_errors: true |
334 | 334 |
|
335 | | -- name: Missing input paramters for state is present (error) |
| 335 | +- name: Missing input parameters for state is present (error) |
336 | 336 | cisco.aci.aci_access_span_dst_group: |
337 | 337 | <<: *aci_info |
338 | 338 | destination_group: ansible_group_1 |
|
0 commit comments