Fix(eos_cli_config_gen): Fix the invalid configuration of vpn-route in export direction for router bgp vrf #4765
+3
−3
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.
Change Summary
Fix the vrf-route for route-target export in router bgp vrf.
Router BGP VRF configuration for route-target should have vrf-route in one direction(export) and vpn-route in the other direction(import) but right now bot have vpn-route. Hence it render the below configuration.
route-target export vpn-ipv6 rcf RT_IMPORT_AF_RCF() vpn-route filter-rcf RT_IMPORT_AF_RCF_FILTER().
I should render below configuration.
route-target export vpn-ipv6 rcf RT_IMPORT_AF_RCF() vrf-route filter-rcf RT_IMPORT_AF_RCF_FILTER()
Related Issue(s)
Fixes #4731
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
Updated the j2 template to render the vrf-route instead of vpn-route for export direction in router bgp vrf.
How to test
Run molecule and deploy the config on lab.
Checklist
User Checklist
Repository Checklist