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 for Port-Channel for Direct HA #4482

Open
wants to merge 30 commits into
base: devel
Choose a base branch
from

Conversation

gmuloc
Copy link
Contributor

@gmuloc gmuloc commented Sep 17, 2024

Change Summary

Add support for port-channel for Direct HA

Component(s) name

arista.avd.eos_designs

Proposed changes

  • By default direct HA interfaces are grouped in a port-channel (even if there is only one direct interface)
  • port-channel ID is computed the same as for MLAG
  • Using a port-channel can be disabled when there is only one direct interface
  • Fix flow tracking for direct HA
  • No port-channel support for HA via uplinks
  • Adjust router path-selection config when port-channel is used

How to test

negative unit tests

  • test that cannot configure multiple direct HA interfaces and disable port-channel this was removed post refactor

positive unit tests

  • direct HA, one link, no port-channel
  • change port-channel ID (can be grouped with another test)
  • direct HA multiple links
  • Verify flow tracking (there was an issue)

Checklist

User Checklist

  • tests
  • update how-to
    • add entry in porting guide as Port-Channel on DPS requires a certain version of EOS so we want people to know how to downgrade
    • update wrong images in how-to doc (wrong route-map comment for LAN/HA)
  • tested scenarii on live devices
    • two links in port-channel for direct HA ✅
    • one link in port-channel for direct HA ✅
    • one link without port-channel for direct HA ✅

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-4482
# Activate the virtual environment
source test-avd-pr-4482/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/gmuloc/avd.git@wan-lan-ha-port-channel#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/,wan-lan-ha-port-channel --force
# Optional: Install AVD examples
cd test-avd-pr-4482
ansible-playbook arista.avd.install_examples

@gmuloc gmuloc added this to the v5.0.0 milestone Sep 17, 2024
@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 Sep 17, 2024
@github-actions github-actions bot added the type: documentation Improvements or additions to documentation label Sep 19, 2024
@gmuloc gmuloc marked this pull request as ready for review September 19, 2024 13:28
@gmuloc gmuloc requested review from a team as code owners September 19, 2024 13:28
Copy link

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 Sep 20, 2024
@github-actions github-actions bot removed the state: conflict PR with conflict label Sep 20, 2024
Copy link

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

@gmuloc gmuloc requested review from ClausHolbechArista and a team September 23, 2024 13:22
@github-actions github-actions bot added the state: conflict PR with conflict label Sep 24, 2024
Copy link

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

@github-actions github-actions bot removed the state: conflict PR with conflict label Sep 24, 2024
Copy link

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

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

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

@github-actions github-actions bot removed the state: conflict PR with conflict label Sep 25, 2024
Copy link

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

@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label Sep 25, 2024
@ClausHolbechArista ClausHolbechArista requested a review from a team September 25, 2024 13:25
Copy link

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 Sep 26, 2024
@github-actions github-actions bot removed the state: conflict PR with conflict label Sep 27, 2024
Copy link

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

Copy link

sonarcloud bot commented Sep 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPIC - AVD AutoVPN/WAN one approval This PR has one approval and is only missing one more. role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated type: documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants