Skip to content

Commit

Permalink
Fix(eos_cli_config_gen): Fix the invalid configuration of vpn-route i…
Browse files Browse the repository at this point in the history
…n export direction for router bgp vrf (#4765)
  • Loading branch information
MaheshGSLAB authored Dec 4, 2024
1 parent 816defa commit 4261d70
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8574,7 +8574,7 @@ router bgp 65101
route-target export evpn 1:30001
route-target export evpn rcf RT_EXPORT_AF_RCF()
route-target export vpn-ipv6 1:30011
route-target export vpn-ipv6 rcf RT_IMPORT_AF_RCF() vpn-route filter-rcf RT_IMPORT_AF_RCF_FILTER()
route-target export vpn-ipv6 rcf RT_IMPORT_AF_RCF() vrf-route filter-rcf RT_IMPORT_AF_RCF_FILTER()
route-target export vpn-ipv6 route-map RT_IMPORT_AF_RM
redistribute connected
redistribute ospf match external include leaked
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5393,7 +5393,7 @@ router bgp 65101
route-target export evpn 1:30001
route-target export evpn rcf RT_EXPORT_AF_RCF()
route-target export vpn-ipv6 1:30011
route-target export vpn-ipv6 rcf RT_IMPORT_AF_RCF() vpn-route filter-rcf RT_IMPORT_AF_RCF_FILTER()
route-target export vpn-ipv6 rcf RT_IMPORT_AF_RCF() vrf-route filter-rcf RT_IMPORT_AF_RCF_FILTER()
route-target export vpn-ipv6 route-map RT_IMPORT_AF_RM
redistribute connected
redistribute ospf match external include leaked
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@ router_bgp:
- "1:30011"
rcf: RT_IMPORT_AF_RCF()
route_map: RT_IMPORT_AF_RM
vpn_route_filter_rcf: RT_IMPORT_AF_RCF_FILTER()
vrf_route_filter_rcf: RT_IMPORT_AF_RCF_FILTER()
redistribute:
ospf:
match_external:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2677,8 +2677,8 @@ router bgp {{ router_bgp.as }}
{% endfor %}
{% if address_family.address_family in ['evpn', 'vpn-ipv4', 'vpn-ipv6'] %}
{% if address_family.rcf is arista.avd.defined %}
{% if address_family.vpn_route_filter_rcf is arista.avd.defined and address_family.address_family in ['vpn-ipv4', 'vpn-ipv6'] %}
route-target export {{ address_family.address_family }} rcf {{ address_family.rcf }} vpn-route filter-rcf {{ address_family.vpn_route_filter_rcf }}
{% if address_family.vrf_route_filter_rcf is arista.avd.defined and address_family.address_family in ['vpn-ipv4', 'vpn-ipv6'] %}
route-target export {{ address_family.address_family }} rcf {{ address_family.rcf }} vrf-route filter-rcf {{ address_family.vrf_route_filter_rcf }}
{% else %}
route-target export {{ address_family.address_family }} rcf {{ address_family.rcf }}
{% endif %}
Expand Down
12 changes: 6 additions & 6 deletions python-avd/pyavd/_eos_cli_config_gen/schema/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3762,10 +3762,10 @@ keys:
RCF function name with parenthesis.
Example: MyFunction(myarg).
Only applicable if `address_family` is one of `evpn`, `vpn-ipv4` or `vpn-ipv6`.
vpn_route_filter_rcf:
vrf_route_filter_rcf:
type: str
description: |-
RCF function name with parenthesis for filtering VPN routes. Also requires `rcf` to be set.
RCF function name with parenthesis for filtering VRF routes. Also requires `rcf` to be set.
Example: MyFunction(myarg).
Only applicable if `address_family` is one of `vpn-ipv4` or `vpn-ipv6`.
router_id:
Expand Down

0 comments on commit 4261d70

Please sign in to comment.