aristanetworks / avd

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

Feat(eos_designs): Add support to add access-groups on l3-interfaces through network-services #4163

Closed laxmikantchintakindi closed 2 months ago

laxmikantchintakindi commented 3 months ago

Change Summary

Add support to add access-groups on l3-interfaces through network-services

Related Issue(s)

Fixes #3534 Only address the L3 interfaec but not the SVIs as it was already implemented in https://github.com/aristanetworks/avd/pull/4096.

Component(s) name

arista.avd.eos_designs

Proposed changes

Initial ask

It would be nice when defining a L3 / SVI in network services to also be able to add an access group right there. That was the tags take care of only adding the L3/SVI as it already does but also only add the access group to the devices that need it.

This PR covers the L3 interfaces part in network services - SVIs was done in https://github.com/aristanetworks/avd/pull/4096

How to test

Checklist

User Checklist

Repository Checklist

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

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] commented 2 months ago

Conflicts have been resolved. A maintainer will review the pull request shortly.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud