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

Fix(cv_deploy): Ensure 'AVD Configurations' container is inserted first #4356

Conversation

ClausHolbechArista
Copy link
Contributor

Change Summary

Ensure 'AVD Configurations' container is inserted first so configs can be overridden by other static configlets or reconciled configs.

Related Issue(s)

BUG990962

Component(s) name

arista.avd.cv_deploy

Proposed changes

How to test

Tested manually with cv_deploy molecule scenario. Added a reconcile container and deleted the AVD config container. The container was recreated and inserted first.

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

Copy link

Review docs on Read the Docs

To test this pull request:

# Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-4356
# Activate the virtual environment
source test-avd-pr-4356/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/ClausHolbechArista/avd.git@fix/cv_deploy/insert-avd-config-container-at-the-top#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/ClausHolbechArista/avd.git#/ansible_collections/arista/avd/,fix/cv_deploy/insert-avd-config-container-at-the-top --force
# Optional: Install AVD examples
cd test-avd-pr-4356
ansible-playbook arista.avd.install_examples

@ClausHolbechArista ClausHolbechArista added the cherry-pick-for-4.10.x PR to be cherry-picked to releases/v4.10.x brach later label Aug 13, 2024
Copy link
Contributor

@carl-baillargeon carl-baillargeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label Aug 16, 2024
Copy link

sonarcloud bot commented Aug 16, 2024

Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carlbuchmann carlbuchmann merged commit c639996 into aristanetworks:devel Aug 16, 2024
40 checks passed
@ClausHolbechArista ClausHolbechArista deleted the fix/cv_deploy/insert-avd-config-container-at-the-top branch August 20, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-for-4.10.x PR to be cherry-picked to releases/v4.10.x brach later one approval This PR has one approval and is only missing one more. rn: Fix(cv_deploy)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants