Skip to content

[UX2.0] Service lan_vpn_feature static route gateway configuration enhancement #468

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

Merged
merged 5 commits into from
Aug 8, 2025

Conversation

rchrabas
Copy link
Collaborator

Description

Add gateway attribute for ipv4_static_routes and ipv6_static_routes in sdwan_service_lan_vpn_feature resource.
Resolving issue #463

Types of Changes

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Build/CI change
  • Code quality improvement/refactoring/documentation (no functional changes)

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • All new and existing tests pass locally

@rchrabas rchrabas marked this pull request as ready for review July 15, 2025 19:02
@koval4ukav
Copy link

Tested and working as expected.
I think it makes sense to update the name of boolean attribute gateway_dhcp just todhcp, as now we have gateway condition attribute added.

@rchrabas
Copy link
Collaborator Author

Do we even need gateway_dhcp attribute? Won't gateway = dhcp imply gateway_dhcp = true?

@koval4ukav
Copy link

Good point, agree, same will apply then for vpn and null0 boolean attributes. Gateway choice will assign true value for corresponding parameter.

@seconroy
Copy link
Collaborator

I agree with changing gateway_dhcp to dhcp but I'm not so sure about gateway = dhcp. Generally in the provider we try to align to the schema. gateway does not exist in the schema but was implemented in transport_wan_vpn for a reason which was to support default values and we are updating here to match that even though there is no functional requirements or default values in service_lan_vpn.

While I do agree it is cleaner, I'm just not sure about adding even more logic to parameters that are not present in the schema. Additionally, we would then need to update transport_wan_vpn which would require changes to modules. I'm happy to discuss in standup but could we add to it to the backup until we have fixed the current set of import issues as this would complicate the import further...

@rchrabas
Copy link
Collaborator Author

Renamed attribute gateway_dhcp to dhcp.

@danischm danischm merged commit 095c4c1 into CiscoDevNet:main Aug 8, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants