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): Custom platform_settings and node_type_keys #3300

Merged
merged 9 commits into from
Aug 9, 2024

Conversation

jonxstill
Copy link
Contributor

Change Summary

Allow use of custom_platform_settings and custom_node_type_keys to allow replacement of already-defined keys/platforms, or addition of new keys/platforms while retaining the default settings.

Related Issue(s)

Fixes #3152

Component(s) name

arista.avd.eos_designs

Proposed changes

Allows you to:

  • Specify new platform settings and node_type_keys in addition to the AVD-defined defaults without having to copy/paste these into your inventory.
  • Redefine AVD-defined default node_type_keys and platform_settings without having to redefine every single one.

No changes to the data model - just use:

  • custom_platform_settings instead of platform_settings.
  • custom_node_type_keys instead of node_type_keys.

How to test

Molecule tests updated to cover these new options. Problems encountered included AVD complaining about duplicate node_type_keys - this was fixed through use of replace_or_append_item().

This can be tested in your own repo by defining a custom_platform_settings and/or custom_node_type_keys at a high level in your repo's hierarchy. Defaults can be copied from the AVD docs and amended as required.

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)

@jonxstill jonxstill self-assigned this Oct 26, 2023
@github-actions github-actions bot added state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated role: eos_designs issue related to eos_designs role labels Oct 26, 2023
@jonxstill
Copy link
Contributor Author

jonxstill commented Nov 1, 2023

Leaving as draft until #3078 is merged (first-class sflow support) as this PR is causing pyavd tests to fail currently.

@github-actions github-actions bot added the state: conflict PR with conflict label Nov 11, 2023
Copy link

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

Copy link

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

@ClausHolbechArista ClausHolbechArista added this to the v4.6.0-dev1 milestone Dec 1, 2023
@github-actions github-actions bot added the state: conflict PR with conflict label Dec 15, 2023
Copy link

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

@gmuloc gmuloc modified the milestones: v4.6.0-dev1, v4.6.0-dev3 Jan 31, 2024
@github-actions github-actions bot removed the state: conflict PR with conflict label Mar 28, 2024
Copy link

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

@github-actions github-actions bot added the state: conflict PR with conflict label Mar 28, 2024
Copy link

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

Copy link

This PR is stale because it has been open 30 days with no activity. The PR will be reviewed by a maintainer and may be closed

Copy link

github-actions bot commented Aug 9, 2024

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

@ClausHolbechArista ClausHolbechArista marked this pull request as ready for review August 9, 2024 09:58
@ClausHolbechArista ClausHolbechArista requested review from a team as code owners August 9, 2024 09:58
@ClausHolbechArista ClausHolbechArista requested a review from a team August 9, 2024 13:55
@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label Aug 9, 2024
Copy link

sonarcloud bot commented Aug 9, 2024

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

@carlbuchmann carlbuchmann merged commit 381b7a6 into aristanetworks:devel Aug 9, 2024
40 checks passed
jrecchia1029 pushed a commit to jrecchia1029/ansible-avd that referenced this pull request Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one approval This PR has one approval and is only missing one more. rn: Feat(eos_designs) 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.

Feat(eos_designs): Add custom_foo keys for large default
4 participants