Skip to content
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(eos_designs): Add support to add access-groups on l3-interfaces through network-services #4163

Merged

Conversation

laxmikantchintakindi
Copy link
Contributor

@laxmikantchintakindi laxmikantchintakindi commented Jun 26, 2024

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 #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 #4096

How to test

Checklist

User Checklist

  • N/A

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

Copy link

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 github-actions bot added state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated role: eos_designs issue related to eos_designs role labels Jun 26, 2024
MaheshGSLAB
MaheshGSLAB previously approved these changes Jun 28, 2024
@MaheshGSLAB MaheshGSLAB marked this pull request as ready for review June 28, 2024 06:50
@MaheshGSLAB MaheshGSLAB requested review from a team as code owners June 28, 2024 06:50
Copy link
Contributor

@gmuloc gmuloc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the PR only partially fix the issue as it is asking for l3_interfaces and SVIs and the PR currently implements only l3_interfaces.

I feel like the code to compute the access_list is a bit of a repeat from the one we have for l3_interfaces under node but maybe there was no easy way to reuse it?

Otherwise it looks good to me if we accept the fact that it is a partial fix.

Can you please remove the comments from the schema?

@laxmikantchintakindi laxmikantchintakindi marked this pull request as draft July 2, 2024 08:22
Copy link

github-actions bot commented Jul 2, 2024

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

@github-actions github-actions bot added the state: conflict PR with conflict label Jul 2, 2024
Copy link

github-actions bot commented Jul 2, 2024

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

@github-actions github-actions bot removed the state: conflict PR with conflict label Jul 2, 2024
@laxmikantchintakindi laxmikantchintakindi marked this pull request as ready for review July 2, 2024 14:19
@ClausHolbechArista ClausHolbechArista dismissed MaheshGSLAB’s stale review July 22, 2024 10:14

Many changes since this review.

@gmuloc gmuloc added this to the v4.10.0 milestone Jul 26, 2024
…es/ip_access_lists.py

Co-authored-by: Guillaume Mulocher <[email protected]>
@gmuloc gmuloc added the one approval This PR has one approval and is only missing one more. label Jul 26, 2024
Copy link

sonarcloud bot commented Jul 26, 2024

@ClausHolbechArista ClausHolbechArista merged commit 1504059 into aristanetworks:devel Jul 26, 2024
41 checks passed
@laxmikantchintakindi laxmikantchintakindi deleted the access_groups branch July 30, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one approval This PR has one approval and is only missing one more. rn: Feat(eos_designs) role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the ability to add access-group membership in network services
4 participants