aristanetworks / avd

Arista Validated Designs
https://avd.arista.com
Apache License 2.0
251 stars 187 forks source link

Refactor(plugins): Move jinja filter code for arista.avd.list_compress to PyAVD #4099

Closed Shivani-gslab closed 2 weeks ago

Shivani-gslab commented 3 weeks ago

Change Summary

Move jinja filter code for arista.avd.list_compress to PyAVD

Related Issue(s)

Fixes #4098

Component(s) name

arista.avd.list_compress

Proposed changes

Moving the code and unit tests for arista.avd.list_compress filter to PyAVD

How to test

CI should catch things.

Checklist

Repository Checklist

github-actions[bot] commented 3 weeks ago

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-4099
# Activate the virtual environment
source test-avd-pr-4099/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/Shivani-gslab/avd.git@list_compress_filter_to_pyavd#subdirectory=python-avd" --force
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/Shivani-gslab/avd.git#/ansible_collections/arista/avd/,list_compress_filter_to_pyavd --force
# Optional: Install AVD examples
cd test-avd-pr-4099
ansible-playbook arista.avd.install_examples
sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud