ansible-aci icon indicating copy to clipboard operation
ansible-aci copied to clipboard

Ansible Playbook that like int blacklist that supports interface ranges.

Open johnjac-cisco opened this issue 2 years ago • 4 comments

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

johnjac-cisco avatar May 24 '22 21:05 johnjac-cisco

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.

johnjac-cisco avatar May 24 '22 21:05 johnjac-cisco

Have you tried a variable to a CSV file?

JT252 avatar May 24 '22 22:05 JT252

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.

johnjac-cisco avatar May 25 '22 13:05 johnjac-cisco

I agree.

JT252 avatar May 25 '22 19:05 JT252

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

lhercot avatar Oct 10 '22 22:10 lhercot