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(eos_validate_state): Fix the VerifyLLDPNeighbors test to skip in case validate_state is set to False #4679

Merged
merged 7 commits into from
Nov 6, 2024

Conversation

MaheshGSLAB
Copy link
Contributor

@MaheshGSLAB MaheshGSLAB commented Nov 4, 2024

Change Summary

Fix the VerifyLLDPNeighbors test to skip in case validate_state is set to False.

Related Issue(s)

Partial fix of #4675. Addressing the bug.

Component(s) name

arista.avd.eos_validate_state

Proposed changes

Added the logic to skip the VerifyLLDPNeighbors in case validate_state is set to False.

How to test

Set validate_state as false in connected endpoint and it should skip the VerifyLLDPNeighbors tests for those interfaces.

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)

@MaheshGSLAB MaheshGSLAB self-assigned this Nov 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

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-4679
# Activate the virtual environment
source test-avd-pr-4679/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/MaheshGSLAB/ansible-avd.git@issue-4675-bug#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/MaheshGSLAB/ansible-avd.git#/ansible_collections/arista/avd/,issue-4675-bug --force
# Optional: Install AVD examples
cd test-avd-pr-4679
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added role: eos_validate_state state: CI Updated CI scenario have been updated in the PR labels Nov 4, 2024
@MaheshGSLAB MaheshGSLAB marked this pull request as ready for review November 4, 2024 13:08
@MaheshGSLAB MaheshGSLAB requested review from a team as code owners November 4, 2024 13:08
@ClausHolbechArista
Copy link
Contributor

@bjmeuer can you please test this fix? Thanks!

Copy link
Contributor

@gmuloc gmuloc left a comment

Choose a reason for hiding this comment

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

@MaheshGSLAB probably need to update some doc /schema description for the key as well

@bjmeuer
Copy link
Contributor

bjmeuer commented Nov 4, 2024

@bjmeuer can you please test this fix? Thanks!

@ClausHolbechArista
tested with my repo and works fine for me

@MaheshGSLAB
Copy link
Contributor Author

@MaheshGSLAB probably need to update some doc /schema description for the key as well

@gmuloc Updated the same.
Thanks

Copy link

sonarcloud bot commented Nov 6, 2024

@ClausHolbechArista ClausHolbechArista merged commit 8eb67e3 into aristanetworks:devel Nov 6, 2024
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Fix(eos_validate_state) role: eos_cli_config_gen issue related to eos_cli_config_gen role 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants