Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configlets attached to a container are not applied to devices under that container #400

Closed
1 task done
tonybourkesdnpros opened this issue Sep 21, 2021 · 1 comment · Fixed by #424
Closed
1 task done
Assignees
Labels
type: bug Something isn't working

Comments

@tonybourkesdnpros
Copy link

Issue Summary

I'm using the Level 5 lab topology on ATD.

CVP version is 2020.2.3

When using configlets_v3

Here's the data model:


CONTAINERS_OSPF:
  DC1:
      parentContainerName: Tenant
  Spine-DC1:
      parentContainerName: DC1
      configlets: 
        - OSPF-Underlay-Spines
  Leaf-DC1:
      parentContainerName: DC1
      configlets: 
        - OSPF-Underlay-Leafs

I run the playbook as follows:


    - name: "Build Container topology"
      arista.cvp.cv_container_v3:
        topology: "{{CONTAINERS_OSPF}}"
        apply_mode: strict

The configlets were uploaded using the configlets_v3 module without issue, they exist in CloudVision. When I look at the CloudVision topolgy, the OSPF-Underlay-Leafs/Spines configlets are listed under the appropriate container. However, looking at the configuration on the leafs/spines under these containers, the configuration is not applied to the individual devices when the tasks are completed.

If I remove the configlet from the container manually, and re-add it manually, the configuration is actually applied to the individual devices.

Even though in CVP, it appears applying a configlet manually or via the configlets_v3 module look identical, something in CVP can tell the difference and the outcomes are different.

Work around is to not apply any configlets under containers, only do so directly.

(I've loaded the latest arista.cvp and cvprac via the following commands:)

  • ansible-galaxy collection install arista.cvp
  • pip install cvprac --upgrade

Which component(s) of AVD impacted

cv_container_v3

How do you run AVD ?

Ansible CLI (with virtual-env or native python)

Input variables

No response

Steps to reproduce

To reproduce quickly: 

- clone this repo in a Level 5 lab evironment: https://github.com/tonybourkesdnpros/ATD-Lab-Reset
- Update arista.cvp and cvprac if needed
- Change the vars/CVP-OSPF.yml or vars/eBGP-underlay.yml to put configlets under a container
- Apply changes through normal change control

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
3 participants