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_cli_config_gen): Support for setting default QSFP transceiver mode #3271

Merged
merged 10 commits into from
Jan 22, 2024

Conversation

mmaaloul
Copy link
Contributor

@mmaaloul mmaaloul commented Oct 19, 2023

Change Summary

To be compliant with the new default QSFP mode for various platforms in EOS 4.26.0+ (40G instead of 4x10G), we are allowing the user to dismiss the transceiver qsfp default-mode 4x10G config.

In AVD 5.0.0 the default will be flipped to not generate this command unless this key is set to true.

Related Issue(s)

Fixes #3261

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

1/ Introduced a new var transceiver_qsfp_default_channelized of type boolean:

  • Per default, config transceiver qsfp default-mode 4x10G is included
  • If the var is defined and set to false, config transceiver qsfp default-mode 4x10G is not included

2/ var generate_default_config no longer control the default qsfp mode configuration

How to test

Changed host generate-default-config : var generate-default-config changed to true while var generate_default_config is set to false. Confirmed that config transceiver qsfp default-mode 4x10G does not show up in the intended config

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)

@mmaaloul mmaaloul requested review from a team as code owners October 19, 2023 17:02
@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 labels Oct 19, 2023
Comment on lines 12 to 15
description: |
The `transceiver_qsfp_default_channelized` knob allows to comply with the change of default QSFP mode for Tomahawk and Trident based devices (40G instead of 4x10G).
This change has been introduced starting from EOS version 4.26.0F.
The user should not configure the knob to `false` for other type of platforms or for a lower EOS version.
Copy link
Contributor

Choose a reason for hiding this comment

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

So I think there is more to this than this reason, since newer EOS versions have removed the command from defaults on other platforms. I think we need to document this with broader terms.
Let's discuss internally.

Copy link
Member

Choose a reason for hiding this comment

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

The description has been updated inspired from the EOS guide: https://www.arista.com/en/um-eos/eos-ethernet-ports

# Use Ctrl + Space to get suggestions for every field. Autocomplete will pop up after typing 2 letters.
type: dict
keys:
transceiver_qsfp_default_channelized:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
transceiver_qsfp_default_channelized:
transceiver_qsfp_default_mode_channelized:

Copy link
Member

Choose a reason for hiding this comment

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

updated to transceiver_qsfp_default_mode_4x10: to align closer to the EOS CLI

@ClausHolbechArista ClausHolbechArista changed the title Feat(eos_cli_config_gen): Support of 40G default QSFP transceiver mode (Tomahawk/Trident, EOS 4.26.0+) Feat(eos_cli_config_gen): Support for setting default QSFP transceiver mode Oct 20, 2023
@ClausHolbechArista
Copy link
Contributor

Moving to draft until we have sorted out the description and key name.

@ClausHolbechArista ClausHolbechArista marked this pull request as draft October 20, 2023 13:16
@gmuloc gmuloc added this to the v4.6.0-dev1 milestone Dec 5, 2023
@carlbuchmann carlbuchmann marked this pull request as ready for review January 12, 2024 17:15
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

…umentation/devices/transceiver_qsfp_default_mode_4x10_false.md
…umentation/devices/transceiver_qsfp_default_mode_4x10_false.md
@carlbuchmann carlbuchmann merged commit ca8e9f3 into aristanetworks:devel Jan 22, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Feat(eos_cli_config_gen) 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post EOS 4.26, QSFP default mode shouldn't be forced to 4x10G
4 participants