Fix VPN Gateway Connection Routing #1957
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1926
PR Checklist
Description
Current
routing
block has the following error:associated_route_table
can be set to any custom table, but based on documentation and error, it can only be set to Default Route Tablepropagated_route_table
block is not working and errors outlabels
block is not working and errors outFix:
associated_route_table
now defaults to Default Route Table when not set (I kept the existing code that allows setting custom route tables, in case it works in old versions of provider or may be supported in the futurepropagated_route_table
now wraps route tables intoroute_tables
labels
is now insideroute_tables
to associate labels for each routing tableDoes this introduce a breaking change
Current code is broken and results into errors described in 1926
If you currently have
propagated_route_table
in your code, addroute_tables
. If you haveassociated_route_table
set to anything other than Default Route Table, it doesn't seem to be supported, so now it will be added by default ifassociated_route_table
is not in the code. Please refer to changes in exampleexamples/networking/virtual_wan/109-vwan-vpn-gateway-connection/virtual_wan.tfvars
Testing
Run example
examples/networking/virtual_wan/109-vwan-vpn-gateway-connection/virtual_wan.tfvars
I was able to successfully run it in my testing.
Apply complete! Resources: 17 added, 0 changed, 0 destroyed.