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 RSS interface profile for select p… #5009

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

Conversation

ashenoy-arista
Copy link
Contributor

@ashenoy-arista ashenoy-arista commented Feb 10, 2025

Change Summary

Build schema for eos_designs role to help generate structured config for RSS interface profile.
RSS interface profile is only applicable to certain SFE (Software Forwarding Engine) hardware platforms.
We would like to have toggle/knob under platform_settings -> feature_support schema that end-user can enable for supported hardware platforms to allow generation of relevant structured config.

Related Issue(s)

Fixes #4983

Component(s) name

arista.avd.eos_designs

Proposed changes

Propose adding rx_queue dictionary type under L3 interface and member eth interfaces of L3 Port-Channel interface.
The keys within this dictionary would be count, worker and mode.
Add a knob under platform_settings -> feature_support schema. When enabled, underlying logic would generate structured config for RSS profile for devices capable of supporting this feature. Such profile would include sections for each interface for which rx_queue dictionary type has been specified/populated in yml.
There will be only one such RSS profile generated and same profile would be set as the chosen profile to apply for the system.

How to test

TBD

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)

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

@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch from ac5db61 to 44d2491 Compare February 11, 2025 00:59
@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch from ab65f89 to 02fd8de Compare February 11, 2025 23:25
@github-actions github-actions bot added the state: conflict PR with conflict label Feb 13, 2025
Copy link

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

@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch 2 times, most recently from d097795 to 0c7fb4c Compare February 15, 2025 02:39
Copy link

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

@github-actions github-actions bot removed the state: conflict PR with conflict label Feb 15, 2025
@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch from 0c7fb4c to fa284e3 Compare February 15, 2025 02:42
@ashenoy-arista
Copy link
Contributor Author

ashenoy-arista commented Feb 15, 2025

Initial logic implementation in eos_designs to validate input yml and generate structured config for RSS profiles.
Molecule unit test has been added.
Negative unit test cases to be added next.

@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch 2 times, most recently from b3d54d9 to 4edf20b Compare February 19, 2025 07:53
@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Feb 19, 2025
@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch 2 times, most recently from 3cdaecf to 1b8e4db Compare February 19, 2025 19:52
@ashenoy-arista
Copy link
Contributor Author

Updated few newly added input yml schema keys.
Added unit tests under eos_designs_unit_tests and eos_designs_negative_unit_tests.

@ashenoy-arista ashenoy-arista marked this pull request as ready for review February 19, 2025 20:00
@ashenoy-arista ashenoy-arista requested review from a team as code owners February 19, 2025 20:00
@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch from 1b8e4db to 61c6015 Compare February 20, 2025 02:00
@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch from 51c62c4 to 78aeca8 Compare February 26, 2025 20:20
@github-actions github-actions bot added the state: conflict PR with conflict label Feb 26, 2025
Copy link

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

@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch from 78aeca8 to 2245499 Compare February 26, 2025 20:49
@github-actions github-actions bot removed the state: conflict PR with conflict label Feb 26, 2025
Copy link

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

@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch from 2245499 to b3ae6ee Compare February 26, 2025 20:57
return rss_profile_member_interfaces
return None

def build_interface_with_rx_queue_settings(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think all these helper methods could live in a UtilsMixin for the base structured config module. Remember to prefix them with underscore if they are cached properties. (They are not shared when they are not used across multiple modules).

You can also choose to split out the platform part into it's own mixin and keep the helpers there if that is better?

Copy link
Contributor Author

@ashenoy-arista ashenoy-arista Feb 28, 2025

Choose a reason for hiding this comment

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

Added helper methods to PlatformMixin class
Tried moving existing platform() method from structured_config/base/init.py to this class.
But it was not generating platform key in yml files for structured config (regardless of decorator cached_property or structured_config_contributor)
Hence did not move platform() cached property to PlatformMixin class.
Please let me know if this method can be moved and what should be the decorator.

@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch 3 times, most recently from c6eaec8 to 281750a Compare February 28, 2025 02:47
…latforms

                   Updated unit tests and addressed review feedback

for more information, see https://pre-commit.ci
@ashenoy-arista ashenoy-arista force-pushed the eosDesignsRssProfileSupport branch from 281750a to 396e5dc Compare February 28, 2025 03:31
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: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support configuration of Receive Side Scaling (RSS) interface profiles for select SFE based platforms
3 participants