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): Set static-routes on node-type l3_interfaces #3599

Conversation

ClausHolbechArista
Copy link
Contributor

Change Summary

Set static-routes on node-type l3_interfaces

Component(s) name

arista.avd.eos_designs

Proposed changes

  • Changing key for set_default_route to dhcp_accept_default_route
  • Adding key static_routes: <list[str]>

How to test

Updated existing molecule tests with no config changes.

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)

@ClausHolbechArista ClausHolbechArista marked this pull request as ready for review February 7, 2024 12:44
@ClausHolbechArista ClausHolbechArista requested review from a team as code owners February 7, 2024 12:44
@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 Feb 7, 2024
@github-actions github-actions bot added the state: conflict PR with conflict label Feb 7, 2024
Copy link

github-actions bot commented Feb 7, 2024

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

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.

LGTM

@gmuloc gmuloc added the one approval This PR has one approval and is only missing one more. label Feb 8, 2024
@gmuloc gmuloc requested review from a team February 8, 2024 13:45
@github-actions github-actions bot removed the state: conflict PR with conflict label Feb 8, 2024
Copy link

github-actions bot commented Feb 8, 2024

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

@carlbuchmann carlbuchmann self-requested a review February 8, 2024 19:04
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, small suggestion on the description.
Tested in POC lab.

static_routes.extend(
{"destination_address_prefix": l3_interface_static_route["prefix"], "gateway": gateway}
for l3_interface_static_route in l3_interface_static_routes
)

if static_routes:
Copy link
Contributor

Choose a reason for hiding this comment

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

return static_routes if static_routes else None

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Even better to just return static_routes or None, but we have this pattern everywhere and we will fix it throughout at some point.

…a_fragments/defs_node_type_l3_interfaces.schema.yml

Co-authored-by: Carl Buchmann <[email protected]>
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.

LGTM again

@carlbuchmann carlbuchmann merged commit 7a20a02 into aristanetworks:devel Feb 9, 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.

4 participants