Feat(anta_runner): Add BGP IPv6 and RFC5549 support
Change Summary
See title.
Related Issue(s)
Fixes #5391
Component(s) name
arista.avd.anta_runner
How to test
Use eos_designs with the following knobs to configure an IPv6 RFC5549 underlay/overlay:
# IPv6 settings
underlay_ipv6: true
underlay_rfc5549: true
overlay_mlag_rfc5549: true
overlay_routing_protocol_address_family: ipv6
Also need to add an IPv6 pool under the node configs: loopback_ipv6_pool: fd00:dc:1::/48.
Launch anta_runner with the following playbook:
---
- name: Run ANTA
hosts: GLOBAL
connection: local
gather_facts: false
tasks:
- name: Run ANTA on EOS devices
import_role:
name: arista.avd.anta_runner
Under anta/avd_catalogs, check that BGP IPv6 peers are tested.
Checklist
Repository Checklist
- [X] My code has been rebased from devel before I start
- [X] I have read the CONTRIBUTING document.
- [X] My change requires a change to the documentation and documentation have been updated accordingly.
- [X] I have updated molecule CI testing accordingly. (check the box if not applicable)
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-5476
# Activate the virtual environment
source test-avd-pr-5476/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/carl-baillargeon/avd.git@anta/bgp_ipv6#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/bgp_ipv6 --force
# Optional: Install AVD examples
cd test-avd-pr-5476
ansible-playbook arista.avd.install_examples
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Ran the PR trough the internal-ci based on the inventory of the ipv6 PR Results
Got the following error
TASK [arista.avd.anta_runner : Run ANTA] ***************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: "Invalid key 'ipv6_underlay'. Not available on 'Vxlan'."
Ran the PR trough the internal-ci based on the inventory of the ipv6 PR Results
Got the following error
TASK [arista.avd.anta_runner : Run ANTA] *************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: "Invalid key 'ipv6_underlay'. Not available on 'Vxlan'."
This PR doesn't have ipv6_underlay available in the schema. This key is available in the IPv6 PR: #4393 only, that's why it's failing.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code