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): Restrict PTP on certain uplinks #4645

Draft
wants to merge 5 commits into
base: devel
Choose a base branch
from

Conversation

sugetha24
Copy link
Contributor

Change Summary

Provide a mechanism to control which uplinks are enabled for PTP.

Related Issue(s)

Fixes #4009

Component(s) name

arista.avd.eos_designs

Proposed changes node_groups:

- group: leaf1
  nodes:
    - name: leaf1a
      ptp:
        enabled: true
        uplinks: [...] # restrict ptp config on these uplinks only

How to test

molecule converge -s eos_designs_unit_tests -- --limit PTP_TESTS

Checklist

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)

@sugetha24 sugetha24 self-assigned this Oct 24, 2024
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-4645
# Activate the virtual environment
source test-avd-pr-4645/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/sugetha24/ansible-avd.git@restrict-ptp-uplinks#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/sugetha24/ansible-avd.git#/ansible_collections/arista/avd/,restrict-ptp-uplinks --force
# Optional: Install AVD examples
cd test-avd-pr-4645
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added role: eos_cli_config_gen issue related to eos_cli_config_gen role 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 Oct 24, 2024
@sugetha24 sugetha24 changed the title Feat(eos_designs): Restrict ptp on certain uplinks Feat(eos_designs): Restrict PTP on certain uplinks Oct 24, 2024
@github-actions github-actions bot removed the role: eos_cli_config_gen issue related to eos_cli_config_gen role label Oct 25, 2024
@sugetha24 sugetha24 force-pushed the restrict-ptp-uplinks branch 3 times, most recently from be91a88 to 1a50a2d Compare October 30, 2024 17:53
Copy link

sonarcloud bot commented Nov 4, 2024

@sugetha24 sugetha24 marked this pull request as ready for review November 4, 2024 23:46
@sugetha24 sugetha24 requested review from a team as code owners November 4, 2024 23:46
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are these configs changing?

@@ -66,3 +66,21 @@ l3leaf:
sync: 14
priority1: 40
priority2: 1

- name: ptp-tests-restrict-uplinks-leaf1
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this device out of the node_group where the two others are. This is why we see so many config changes, because the other devices are no longer forming an MLAG pair...

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

github-actions bot commented Nov 8, 2024

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

@ClausHolbechArista
Copy link
Contributor

Moving to draft. Please set ready for review once comments have been addressed and the PR has been rebased. Thanks.

@ClausHolbechArista ClausHolbechArista marked this pull request as draft November 13, 2024 13:06
@ClausHolbechArista
Copy link
Contributor

Make sure this is applied correctly for both l2leaf and l3leaf

@laxmikantchintakindi
Copy link
Contributor

Is it a good idea to add ptp profiles to uplink_ptp in new issue/PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: conflict PR with conflict state: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat(eos_designs): Only enable PTP on certain uplinks
3 participants