aristanetworks / ansible-cvp

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

cv_change_control_v3: Add support for approve/execute actions #526

Closed pmerlo2022 closed 1 year ago

pmerlo2022 commented 1 year ago

Enhancement summary

Add the following capabilities to cv_change_control_v3:

Ideally the enhancement also provides the ability to both approve and execute a change control within a single task.

Which component of AVD is impacted

cv_change_control_v3

Use case example

The cv_change_control_v3 role already provides the capability to create, remove and show change controls This request is to add approve/execute choices following the existing design.

Describe the solution you'd like

The solution should add new state choices: < approve | execute | approve_and_execute >

Example 1:

    - name: "Approve Change Control"
       arista.cvp.cv_change_control_v3:
        state: approve
        name: change.name
    - name: "Execute Change Control"
       arista.cvp.cv_change_control_v3:
        state: execute
        name: change.name

Example 2:

    - name: "Approve and Execute Change Control"
       arista.cvp.cv_change_control_v3:
        state: approve_and_execute
        name: another_change.name

Other considerations:

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct