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 ability to override wan control plane policy #3690

Merged

Conversation

ayushmittal-arista
Copy link
Contributor

@ayushmittal-arista ayushmittal-arista commented Mar 1, 2024

Change Summary

We provide user to either configure the control plane policy or we auto generate it. Add a molecule test to test the overriding.

Related Issue(s)

Fixes https://github.com/aristanetworks/avd-internal/issues/143

Component(s) name

arista.avd.eos_designs

Proposed changes

1.) Override control plane policy test
2.) Introduce application_profile parameter in control_plane_virtual_topology so that we can override APP-PROFILE-CONTROL-PLANE name.
3.) Added optional definition, i.e user can just override the name without defining the profile in application classification in which case we will auto-generate the profile definition ( same as what we are doing now for APP-PROFILE-CONTROL-PLANE)
4.) Alternatively, he also wants to override the application classification as well, he can just define the profile in application classification section

How to test

molecule

Checklist

User 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)

@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Mar 1, 2024
@gmuloc
Copy link
Contributor

gmuloc commented Mar 1, 2024

Just found an issue in schema that is somehow related to this PR:

https://github.com/aristanetworks/avd/blob/devel/ansible_collections/arista/avd/roles/eos_designs/schemas/schema_fragments/wan_virtual_topologies.schema.yml#L73

Can you change the default value to be <VRF-DEFAULT-POLICY-NAME>-CONTROL-PLANE in the schema description for name?

@gmuloc gmuloc changed the title Feat(eos_designs): add molecule test to override wan control plane policy Feat(eos_designs): Add molecule test to override wan control plane policy Mar 5, 2024
@github-actions github-actions bot added the state: conflict PR with conflict label Mar 5, 2024
Copy link

github-actions bot commented Mar 5, 2024

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

Copy link

github-actions bot commented Mar 7, 2024

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 Mar 7, 2024
@ayushmittal-arista ayushmittal-arista marked this pull request as ready for review March 7, 2024 09:22
@ayushmittal-arista ayushmittal-arista requested review from a team as code owners March 7, 2024 09:22
@ayushmittal-arista ayushmittal-arista force-pushed the cpoverride branch 2 times, most recently from 03a2ac3 to 3a9c347 Compare March 7, 2024 09:30
Copy link
Contributor

@gmuloc gmuloc left a comment

Choose a reason for hiding this comment

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

All is there - thanks for the good work!
couple of comments regarding mostly trying to simplify the test inputs by not redefining variables inherited from the top level group

@github-actions github-actions bot added the role: eos_cli_config_gen issue related to eos_cli_config_gen role label Mar 7, 2024
@github-actions github-actions bot removed the role: eos_cli_config_gen issue related to eos_cli_config_gen role label Mar 8, 2024
@gmuloc gmuloc requested review from a team March 8, 2024 14:31
@gmuloc gmuloc added the one approval This PR has one approval and is only missing one more. label Mar 12, 2024
@ClausHolbechArista
Copy link
Contributor

This one needs a rerun of molecule.

@github-actions github-actions bot added the state: conflict PR with conflict label Mar 12, 2024
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 changed the title Feat(eos_designs): Add molecule test to override wan control plane policy Feat(eos_designs): Add ability to override wan control plane policy Mar 13, 2024
@ClausHolbechArista ClausHolbechArista merged commit fa08730 into aristanetworks:devel Mar 13, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EPIC - AVD AutoVPN/WAN 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.

None yet

3 participants