Skip to content
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_cli_config_gen): Add route_map_in/out for router_bgp.address_family_evpn.neighbors[] #4625

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ router bgp 65101
neighbor 10.100.100.3 activate
neighbor 10.100.100.3 default-route rcf RCF_DEFAULT_ROUTE()
neighbor 10.100.100.4 activate
neighbor 10.100.100.4 route-map RM1 in
neighbor 10.100.100.4 route-map RM2 out
neighbor 10.100.100.4 encapsulation path-selection
neighbor 10.100.100.5 activate
neighbor 10.100.100.5 encapsulation mpls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ router bgp 65101
neighbor 10.100.100.3 activate
neighbor 10.100.100.3 default-route rcf RCF_DEFAULT_ROUTE()
neighbor 10.100.100.4 activate
neighbor 10.100.100.4 route-map RM1 in
neighbor 10.100.100.4 route-map RM2 out
neighbor 10.100.100.4 encapsulation path-selection
neighbor 10.100.100.5 activate
neighbor 10.100.100.5 encapsulation mpls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ router_bgp:
- ip_address: 10.100.100.4
activate: true
encapsulation: path-selection
route_map_in: RM1
route_map_out: RM2
- ip_address: 10.100.100.5
activate: true
encapsulation: mpls
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 @@ -896,6 +896,12 @@ router bgp {{ router_bgp.as }}
{% if neighbor.additional_paths.receive is arista.avd.defined(true) %}
neighbor {{ neighbor.ip_address }} additional-paths receive
{% endif %}
{% if neighbor.route_map_in is arista.avd.defined %}
neighbor {{ neighbor.ip_address }} route-map {{ neighbor.route_map_in }} in
{% endif %}
{% if neighbor.route_map_out is arista.avd.defined %}
neighbor {{ neighbor.ip_address }} route-map {{ neighbor.route_map_out }} out
{% endif %}
gmuloc marked this conversation as resolved.
Show resolved Hide resolved
{% if neighbor.rcf_in is arista.avd.defined %}
neighbor {{ neighbor.ip_address }} rcf in {{ neighbor.rcf_in }}
{% endif %}
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 @@ -1297,6 +1297,12 @@ keys:
type: str
activate:
type: bool
route_map_in:
type: str
description: Inbound route-map name.
route_map_out:
type: str
description: Outbound route-map name.
rcf_in:
type: str
description: |-
Expand Down
Loading