-
Notifications
You must be signed in to change notification settings - Fork 244
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
Feat(anta_runner): Add ANTA BGP neighbors reachability tests #5188
Feat(anta_runner): Add ANTA BGP neighbors reachability tests #5188
Conversation
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-5188
# Activate the virtual environment
source test-avd-pr-5188/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/carl-baillargeon/avd.git@anta/add_reachability_tests#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/carl-baillargeon/avd.git#/ansible_collections/arista/avd/,anta/add_reachability_tests --force
# Optional: Install AVD examples
cd test-avd-pr-5188
ansible-playbook arista.avd.install_examples |
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.
Successfully ran the test in the lab. Tested manually shutting down some random interfaces and the report came back with a proper response pointing at failed BGP peering in idle state. After restoring the interfaces the report came back with all BGP tests passing.
LGTM!
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
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
Change Summary
Add additional inputs to VerifyReachability to cover BGP neighbors with update source configured.
Also simplify the
bgp_neighbors
property logic.Component(s) name
arista.avd.anta_runner
Proposed changes
See Change Summary.
How to test
ansible-playbook playbook/fabric-validate.yml
Checklist
User Checklist
Repository Checklist