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

Fix(eos_designs): Wrong structured config for overlapping network ports #5033

Merged

Conversation

gmuloc
Copy link
Contributor

@gmuloc gmuloc commented Feb 12, 2025

Change Summary

Fix(eos_designs): Wrong structured config for nested network ports

Related Issue(s)

Fixes issue where structured config "leaked" between network ports when overridden.

Component(s) name

arista.avd.eos_designs

Proposed changes

  • Postpone application of structured_config until we have decided on which network_port to configure.
  • Done for both ethernet_interfaces and port_channel_interfaces

How to test

  • Added tests

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)

Sorry, something went wrong.

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-5033
# Activate the virtual environment
source test-avd-pr-5033/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/gmuloc/avd.git@fix/network-ports-structured-config#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/gmuloc/avd.git#/ansible_collections/arista/avd/,fix/network-ports-structured-config --force
# Optional: Install AVD examples
cd test-avd-pr-5033
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Feb 12, 2025
@gmuloc gmuloc force-pushed the fix/network-ports-structured-config branch from ed1ce41 to 152a8ef Compare February 12, 2025 22:18
@ClausHolbechArista ClausHolbechArista marked this pull request as ready for review February 13, 2025 08:00
@ClausHolbechArista ClausHolbechArista requested review from a team as code owners February 13, 2025 08:00
@ClausHolbechArista ClausHolbechArista changed the title Fix(eos_designs): Wrong structured config for nested network ports Fix(eos_designs): Wrong structured config for overlapping network ports Feb 13, 2025
@ClausHolbechArista ClausHolbechArista added this to the v5.2.2 milestone Feb 13, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@ClausHolbechArista ClausHolbechArista marked this pull request as draft February 14, 2025 06:33
@carlbuchmann carlbuchmann marked this pull request as ready for review February 14, 2025 13:52
Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@carl-baillargeon carl-baillargeon left a comment

Choose a reason for hiding this comment

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

LGTM.

@carlbuchmann carlbuchmann merged commit f4d99a8 into aristanetworks:devel Feb 14, 2025
47 checks passed
carlbuchmann pushed a commit to carlbuchmann/avd that referenced this pull request Feb 14, 2025
carlbuchmann added a commit that referenced this pull request Feb 14, 2025
…ts (#5033) (#5050)

Co-authored-by: Guillaume Mulocher <[email protected]>
Co-authored-by: Claus Holbech <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants