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

Refactor(eos_validate_state): Keep only ANTA mode in eos_validate_state #4286

Merged

Conversation

gmuloc
Copy link
Contributor

@gmuloc gmuloc commented Jul 30, 2024

Change Summary

This PR removes the legacy Ansible mode for eos_validate_state and promotes the ANTA mode to be the only one

Component(s) name

arista.avd.eos_validate_state

Proposed changes

  • Remove ansible tests tasks
  • Remove support for Ansible tags

How to test

molecule test still works

Checklist

User Checklist

  • Address TODOs in release notes
  • Address TODOs in README.md
  • Remove ansible tags support from code

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)

@gmuloc gmuloc added this to the v5.0.0-dev1 milestone Jul 30, 2024
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-4286
# Activate the virtual environment
source test-avd-pr-4286/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/gmuloc/avd.git@remove-legacy-validate-state#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/gmuloc/avd.git#/ansible_collections/arista/avd/,remove-legacy-validate-state --force
# Optional: Install AVD examples
cd test-avd-pr-4286
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added type: documentation Improvements or additions to documentation role: eos_validate_state state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated labels Jul 30, 2024
@github-actions github-actions bot added role: eos_designs issue related to eos_designs role state: conflict PR with conflict labels Jul 30, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the state: conflict PR with conflict label Jul 30, 2024
@gmuloc gmuloc marked this pull request as ready for review July 30, 2024 12:47
@gmuloc gmuloc requested review from a team as code owners July 30, 2024 12:47
Copy link
Contributor

@MaheshGSLAB MaheshGSLAB left a comment

Choose a reason for hiding this comment

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

LGTM, ran validate role on lab without setting use_anta: true

@MaheshGSLAB MaheshGSLAB requested a review from a team July 31, 2024 13:00
@github-actions github-actions bot added the state: conflict PR with conflict label Jul 31, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link

Conflicts have been resolved. A maintainer will review the pull request shortly.

@github-actions github-actions bot removed the state: conflict PR with conflict label Jul 31, 2024
gmuloc and others added 2 commits August 1, 2024 10:39
Co-authored-by: Claus Holbech <holbech@arista.com>
Copy link

github-actions bot commented Aug 2, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the state: conflict PR with conflict label Aug 2, 2024
@github-actions github-actions bot removed the state: conflict PR with conflict label Aug 2, 2024
Copy link

github-actions bot commented Aug 2, 2024

Conflicts have been resolved. A maintainer will review the pull request shortly.

Copy link

sonarqubecloud bot commented Aug 2, 2024

@ClausHolbechArista ClausHolbechArista merged commit e4b2b7c into aristanetworks:devel Aug 2, 2024
40 checks passed
jrecchia1029 pushed a commit to jrecchia1029/ansible-avd that referenced this pull request Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Refactor(eos_validate_state) role: eos_designs issue related to eos_designs role role: eos_validate_state state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated type: documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants