aristanetworks / ansible-cvp

Ansible modules for Arista CloudVision
http://cvp.avd.sh
Apache License 2.0
66 stars 61 forks source link

Retrieve Tags from CV #556

Open sebastianw opened 1 year ago

sebastianw commented 1 year ago

Enhancement summary

It should be possible to get a list of tags and where they are assigned from Cloudvision so that it is possible to delete tags.

Which component of AVD is impacted

cv_facts_v3

Use case example

We want to tag customer interfaces on a switch with a special tag. Interfaces that are not in use should not have this tag.

Currently we can create and assign a tag to an interface but it is not possible to get a list of where this tag is currently assigned in Cloudvision. This would be required so that the tag can be deleted from interfaces that are no longer in use.

Describe the solution you'd like

A way to retrieve tags from Cloudvision and where they are assigned so that we can crosscheck them against our database.

Describe alternatives you've considered

Manually using the /api/resources/tag/v2/Tag/all API to retrieve tags. The rest of the Ansible playbook is using this module so it would be some overhead.

Additional context

No response

Code of Conduct

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 15 days