aristanetworks / ansible-cvp

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

Feat: Added 'images', 'tasks' options and containers 'regexp_filter' in cv_facts_v3 with examples #632

Closed Shivani-chourasiya closed 1 year ago

Shivani-chourasiya commented 1 year ago

Change Summary

Added 'images' and 'tasks' options in cv_facts_v3 with examples

Component(s) name

arista.cvp.cv_facts_v3

Proposed changes

  1. Added images option to cv_facts_v3:

    • It collects facts for images present in CVP.
    • Filter by image_name can be applied by regexp_filter option, to get the specific image facts.
  2. Added tasks option to cv_facts_v3:

    • It collects facts for tasks present in CVP.
    • Filter by task_id and task_status can be applied by regexp_filter option, to get the specific task facts.
    • Verbose can be applied with verbose option to get long/short facts.
  3. Added regexp_filter for containers option in cv_facts_v3:

    • It filters the container facts by container name mentioned in regexp_filter argument.

How to test

Run the playbooks in examples/cv_facts_v3 directory

Checklist

User Checklist

Repository Checklist

sugetha24 commented 1 year ago

Can we update Documentation for this?

Shivani-chourasiya commented 1 year ago

Can we update Documentation for this?

Updated the docs!