You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Setting state "absent" on a aci_domain_to_vlan_pool task removes the whole domain and not only the binding to the vlan pool
Affected Module Name(s):
aci_domain_to_vlan_pool
APIC version and APIC Platform
V 5.2(8e) and on-prem.
Collection versions
cisco.aci 2.10.1
Output/ Error message
Expected Behavior
Setting an "absent" state on the task should only remove the vlan_pool to domain binding, not the whole domain
Actual Behavior
The whole domain is removed from the APIC
Playbook tasks to Reproduce
First:
- name: Bind a physical domain to VLAN pool
cisco.aci.aci_domain_to_vlan_pool:
host: apic
username: admin
password: SomeSecretPassword
domain: phys_dom
domain_type: phys
pool: phys_pool
pool_allocation_mode: static
state: present
delegate_to: localhost
Then:
- name: Remove binding from physical domain to VLAN pool
cisco.aci.aci_domain_to_vlan_pool:
host: apic
username: admin
password: SomeSecretPassword
domain: phys_dom
domain_type: phys
pool: phys_pool
pool_allocation_mode: static
state: absent
delegate_to: localhost
Important Factoids
From the code i can see that on the module, the url endpoint is being build using the whole domain as an object:
So it makes sense that setting "absent" and running aci.delete_config() deletes the whole domain
The state absent should be a new payload that removes the binding, something like this (just writing it on the fly, must be checked and tested:
This is based on a test done directly on the GUI with the API inspector:
method: POST
url: https://10.10.10.10/api/node/mo/uni/phys-phydom_ep_test/rsvlanNs.json
payload{"infraRsVlanNs":{"attributes":{"dn":"uni/phys-phydom_ep_test/rsvlanNs","status":"deleted"},"children":[]}}
References
#0000
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
aci_domain_to_vlan_pool "absent" state removes the whole domain and not only the bindingaci_domain_to_vlan_pool "absent" state removes the whole domain and not only the binding (DCNE-207)
Oct 15, 2024
Community Note
Description
Setting state "absent" on a aci_domain_to_vlan_pool task removes the whole domain and not only the binding to the vlan pool
Affected Module Name(s):
APIC version and APIC Platform
Collection versions
Output/ Error message
Expected Behavior
Actual Behavior
Playbook tasks to Reproduce
First:
Then:
Important Factoids
From the code i can see that on the module, the url endpoint is being build using the whole domain as an object:
So it makes sense that setting "absent" and running aci.delete_config() deletes the whole domain
The state absent should be a new payload that removes the binding, something like this (just writing it on the fly, must be checked and tested:
This is based on a test done directly on the GUI with the API inspector:
References
The text was updated successfully, but these errors were encountered: