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

Fix(eos_designs): Fix issue with hardware_counters python code #2447

Merged
merged 5 commits into from
Jan 23, 2023

Conversation

gmuloc
Copy link
Contributor

@gmuloc gmuloc commented Jan 20, 2023

Change Summary

When porting from AVD 3.7.0 jinja2 template to AVD3.8.0 python module, the logic was not correctly implemented and it was not caught up at implementation time because no test existed in molecule for hardware_counters.features

Component(s) name

arista.avd.eos_designs

Proposed changes

As we are only copying over the list of dictionaries, removing the double for loop and just injecting the incoming data.

How to test

new molecule test for it in `eos_designs_unit_test

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)

@gmuloc gmuloc requested a review from a team as a code owner January 20, 2023 15:04
@gmuloc gmuloc added the cherry-pick-for-3.8.x PR to be cherry-picked to releases/v3.8.x brach later label Jan 20, 2023
@github-actions github-actions bot added role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR labels Jan 20, 2023
@gmuloc gmuloc requested a review from xaviramon January 20, 2023 15:05
Copy link
Contributor

@noredistribution noredistribution left a comment

Choose a reason for hiding this comment

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

LGTM! Tested again and it works with the new changes

@github-actions github-actions bot added role: eos_cli_config_gen issue related to eos_cli_config_gen role state: Documentation role Updated labels Jan 20, 2023
Copy link
Contributor

@xaviramon xaviramon left a comment

Choose a reason for hiding this comment

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

LGTM

@carlbuchmann carlbuchmann added this to the 3.8.1 milestone Jan 20, 2023
@carlbuchmann carlbuchmann merged commit 11b0ef4 into aristanetworks:devel Jan 23, 2023
carlbuchmann pushed a commit to carlbuchmann/avd that referenced this pull request Jan 23, 2023
@carlbuchmann carlbuchmann removed the cherry-pick-for-3.8.x PR to be cherry-picked to releases/v3.8.x brach later label Jan 23, 2023
carlbuchmann added a commit that referenced this pull request Jan 23, 2023
#2454)

Co-authored-by: Claus Holbech <holbech@arista.com>
Co-authored-by: Guillaume Mulocher <gmulocher@arista.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Fix(eos_designs) role: eos_cli_config_gen issue related to eos_cli_config_gen role 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.

None yet

5 participants