cv_container
cv_container¶
Manage Provisioning topology.
DEPRECATED¶
- In version:
4.0
- Why : Updated modules released with increased functionality
- Alternative: Use
arista.cvp.cv_container_v3
instead.
Synopsis¶
CloudVision Portal Configlet configuration requires a dictionary of containers with their parent, to create and delete containers on CVP side. Returns number of created and/or deleted containers
Module-specific Options¶
The following options may be specified for this module:
parameter | type | required | default | choices | comments |
---|---|---|---|---|---|
configlet_filter |
list | no | ['none'] |
Filter to apply intended set of configlet on containers. If not used, then module only uses ADD mode. configlet_filter list configlets that can be modified or deleted based on configlets entries.
|
|
cvp_facts |
dict | yes |
Facts from CVP collected by cv_facts module
|
||
mode |
str | no | merge |
|
Allow to save topology or not
|
topology |
dict | yes |
Yaml dictionary to describe intended containers
|
Examples:¶
- name: Create container topology on CVP
hosts: cvp
connection: local
gather_facts: no
vars:
verbose: False
containers:
Fabric:
parent_container: Tenant
Spines:
parent_container: Fabric
configlets:
- container_configlet
images:
- 4.22.0F
devices:
- veos01
tasks:
- name: "Gather CVP facts {{inventory_hostname}}"
cv_facts:
register: cvp_facts
- name: "Build Container topology on {{inventory_hostname}}"
cv_container:
cvp_facts: "{{cvp_facts.ansible_facts}}"
topology: "{{containers}}"
mode: merge
register: CVP_CONTAINERS_RESULT
Author¶
- EMEA AS Team (@aristanetworks)
Last update:
January 4, 2022