-
Notifications
You must be signed in to change notification settings - Fork 232
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
Feat(eos_designs): Set static-routes on node-type l3_interfaces #3599
Conversation
ansible_collections/arista/avd/roles/eos_designs/docs/tables/wan-interfaces-settings.md
Outdated
Show resolved
Hide resolved
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Conflicts have been resolved. A maintainer will review the pull request shortly. |
...rista/avd/roles/eos_designs/schemas/schema_fragments/defs_node_type_l3_interfaces.schema.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM again
Change Summary
Set static-routes on node-type l3_interfaces
Component(s) name
arista.avd.eos_designs
Proposed changes
set_default_route
todhcp_accept_default_route
static_routes: <list[str]>
How to test
Updated existing molecule tests with no config changes.
Checklist
User Checklist
Repository Checklist