-
Notifications
You must be signed in to change notification settings - Fork 220
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
Refactor(eos_designs): Move debug vars dump to action plugin instead of it's own task #4540
Merged
carlbuchmann
merged 3 commits into
aristanetworks:devel
from
ClausHolbechArista:refactor/eos_designs/move-debug-to-structured-config-action-plugin
Oct 4, 2024
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…of it's own task.
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-4540
# Activate the virtual environment
source test-avd-pr-4540/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/ClausHolbechArista/avd.git@refactor/eos_designs/move-debug-to-structured-config-action-plugin#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/,refactor/eos_designs/move-debug-to-structured-config-action-plugin --force
# Optional: Install AVD examples
cd test-avd-pr-4540
ansible-playbook arista.avd.install_examples |
gmuloc
reviewed
Oct 2, 2024
ansible_collections/arista/avd/plugins/action/eos_designs_structured_config.py
Show resolved
Hide resolved
…ed-config-action-plugin
gmuloc
approved these changes
Oct 3, 2024
gmuloc
added
the
one approval
This PR has one approval and is only missing one more.
label
Oct 3, 2024
Quality Gate passedIssues Measures |
carlbuchmann
approved these changes
Oct 4, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - tested in local repo... it's fast!
ClausHolbechArista
deleted the
refactor/eos_designs/move-debug-to-structured-config-action-plugin
branch
October 23, 2024 05:55
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
one approval
This PR has one approval and is only missing one more.
rn: Refactor(eos_designs)
role: eos_designs
issue related to eos_designs role
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
Move debug vars dump to action plugin instead of it's own task
Related Issue(s)
Increased run time after we removed tags since Ansible gathers all vars for every device before evaluating
when
on the task.Component(s) name
arista.avd.eos_designs
Proposed changes
Move dump of hostvars to
eos_designs_structured_config
action plugin, since that already runs per device and has access to all vars.How to test
Tested manually and compared output between devel and branch:
Note some reordering is expected where the internal data structures are built using sets.
Checklist
User Checklist
Repository Checklist