ansible-aci
ansible-aci copied to clipboard
Ansible Playbook that like int blacklist that supports interface ranges.
Community Note
- 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
- Currently ACI_interface_blacklist.py only supports one interface at a time. Customers would like to disable ranges of interfaces.
New or Affected Module(s):
- aci_interface_blacklist.py
APIC version and APIC Platform
- ALL
Collection versions
- cisco.aci ALL
References
- #0000
CONF T, on the APIC CLI supports interface ranges. But fabricRsOosPath in the API does not. I don't know if that helps you or not.
Have you tried a variable to a CSV file?
That could work, but that seems a lot more complex solution vs being able to send a playbook "eth1/1-12". I get that the underlining API fabricRsOosPath also doesn't support ranges, but it would be beneficial if someone could make a playbook once, and it would be simple after that.
I agree.
Next release will have the interface_range lookup plugin.
See here how to use it with interface blacklist: https://github.com/CiscoDevNet/ansible-aci/blob/0bc26bb919981f3dca21ffc4bdd21eaf6c8583f6/tests/integration/targets/aci_lookup_interface_range/tasks/main.yml#L109