Deprecated

Removed in 4.0.0

i

Reason:Updated modules released with increased functionality | Alternative:Use M(arista.cvp.cv_container_v3) instead.

arista.cvp.cv_container (3.10.1) — module

Manage Provisioning topology.

| "added in version" 1.0.0 of arista.cvp"

Authors: Ansible Arista Team (@aristanetworks)

Install collection

Install with ansible-galaxy collection install arista.cvp:==3.10.1


Add to requirements.yml

  collections:
    - name: arista.cvp
      version: 3.10.1

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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

Inputs

    
mode:
    choices:
    - merge
    - override
    - delete
    default: merge
    description: Allow to save topology or not.
    required: false
    type: str

options:
    description: Implements the ability to create a sub-argument_spec, where the sub options
      of the top level argument are also validated using the attributes discussed in this
      section.
    required: false
    type: dict

topology:
    description: Yaml dictionary to describe intended containers.
    required: true
    type: dict

cvp_facts:
    description: Facts from CVP collected by cv_facts module.
    required: true
    type: dict

configlet_filter:
    default:
    - none
    description: 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.
    elements: str
    required: false
    type: list