-
Notifications
You must be signed in to change notification settings - Fork 220
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
base: devel
Are you sure you want to change the base?
Conversation
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 |
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/ptp.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_node_type.schema.yml
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_node_type.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/schema/schema_fragments/defs_p2p_links.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/underlay/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
be91a88
to
1a50a2d
Compare
1a50a2d
to
6136a7b
Compare
for more information, see https://pre-commit.ci
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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...
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Moving to draft. Please set ready for review once comments have been addressed and the PR has been rebased. Thanks. |
Make sure this is applied correctly for both l2leaf and l3leaf |
Is it a good idea to add ptp profiles to uplink_ptp in new issue/PR? |
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:
How to test
molecule converge -s eos_designs_unit_tests -- --limit PTP_TESTS
Checklist
Repository Checklist