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): overlay_rd_type with inline jinja generates incorrect config #2393

Merged
merged 2 commits into from Jan 12, 2023

Conversation

carlbuchmann
Copy link
Member

Change Summary

When inline jinja is used overlay_rd_type.admin_subfield or overlay_rd_type.admin_subfield_offset , variables are returned as strings and cause incorrect data.

We now auto-convert these fields to integers when applicable.

Component(s) name

arista.avd.eos_designs

Proposed changes

Updates to /plugin_utils/eos_designs_facts.py to convert to integers.

How to test

See molecule test case.

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)

@carlbuchmann carlbuchmann requested a review from a team as a code owner January 11, 2023 16:40
@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Jan 11, 2023
Copy link
Contributor

@tgodaA tgodaA left a comment

Choose a reason for hiding this comment

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

LGTM

@ClausHolbechArista ClausHolbechArista merged commit 76b9552 into aristanetworks:devel Jan 12, 2023
@ClausHolbechArista ClausHolbechArista added this to the v3.8.0-rc2 milestone Jan 12, 2023
ClausHolbechArista added a commit to ClausHolbechArista/avd that referenced this pull request Jan 12, 2023
…ct config (aristanetworks#2393)

Co-authored-by: Claus Holbech <holbech@arista.com>
carlbuchmann added a commit that referenced this pull request Jan 12, 2023
…ct config (#2393) (#2403)

Co-authored-by: Carl Buchmann <carl.buchmann@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) state: CI Updated CI scenario have been updated in the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants