Closed colinmacgiolla closed 1 year ago
LGTM! Would be nice to add the example playbooks to the example folder but we can do that in a different PR, I see we haven't yet added anything for cv_container_v3 there anyways
@colinmacgiolla I suggest going ahead and adding the examples you have here in the PR.
LGTM! Would be nice to add the example playbooks to the example folder but we can do that in a different PR, I see we haven't yet added anything for cv_container_v3 there anyways
@colinmacgiolla I suggest going ahead and adding the examples you have here in the PR.
Done
Change Summary
The PR introduces support for assigning, updating, and removing (in strict mode) an
imageBundle
(there can be only one) from a container.If an image bundle is already assigned to the container, and the user topology does not specify one (or has it as blank), the existing image bundle will remain in place unless strict mode is used.
Related Issue(s)
Fixes #
Component(s) name
arista.cvp.cv_container_v3
Proposed changes
This is mostly changes in the
container_tools.py
where I've added the necessary function calls to add/remove an image bundle from an element. No changes were required re deleting a container, as the API call allows the container to be deleted, whether or not there is a bundle assigned.How to test
Tested with CVP
2021.2.2
and cvprac1.2.0
Creating a new container with an existing image bundle assigned:
Updating the image bundle on an existing container
Removing the image bundle from an existing container
Checklist
User Checklist
Repository Checklist