-
Notifications
You must be signed in to change notification settings - Fork 232
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: New anta_workflow plugin using PyAVD #4196
base: devel
Are you sure you want to change the base?
Feat: New anta_workflow plugin using PyAVD #4196
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-4196
# Activate the virtual environment
source test-avd-pr-4196/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/carl-baillargeon/avd.git@feat/move_anta_to_pyavd#subdirectory=python-avd" --force
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/carl-baillargeon/avd.git#/ansible_collections/arista/avd/,feat/move_anta_to_pyavd --force
# Optional: Install AVD examples
cd test-avd-pr-4196
ansible-playbook arista.avd.install_examples |
8853a02
to
da57595
Compare
da57595
to
7b8c139
Compare
Quality Gate passedIssues Measures |
7b8c139
to
3e78cff
Compare
for more information, see https://pre-commit.ci
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. |
for more information, see https://pre-commit.ci
956ce20
to
d0f477d
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Change Summary
anta_workflow
Ansible action pluginanta_runner
Ansible roleget_device_anta_catalog
function in PyAVD to generate the ANTA catalogsget_fabric_data
function in PyAVD to generate the fabric mappings used to generate the catalogsRequirements
NEEDS ANTA v1.3.0
On ANTA:
On AVD:
Component(s) name
PyAVD
Proposed changes
Example playbook for anta_runner role:
Example playbook for anta_workflow plugin:
To-do list
anta.reporter.csv_reporter
andanta.reporter.md_reporter
. We should also be able to filter statuses (from plugin arguments) usingResultManager.filter()
VerifyAVTRole
4e20dbfVerifyMlagStatus
VerifyRoutingProtocolModel
4e20dbfVerifyAPIHttpsSSL
VerifySpecificIPSecConn
4e20dbfVerifyStunClient
4e20dbfVerifyNTP
4e20dbfVerifyReloadCause
4e20dbfvalidate_state: false
configuration 4e20dbfFabricData
to add DPS mappings 4e20dbfanta_runner
) that will run the action pluginanta_workflows
- Similar tocv_deploy
&cv_workflows
18d98beanta_workflow
plugin documentation underplugins.modules
anta_runner
roleSome tests don't require any inputs, in that case we just update PYAVD_TEST_INDEX
Phase 2:
evpn_multidomain
knob to fabric scope to extend testing on border leafs