From 87bbe75152e3e0625776587c1fd4cd7104319fe1 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 7 Mar 2021 21:49:50 +0100 Subject: bgp: T3391: add per AFI maximum-paths support * set protocols bgp ASN address-family ipv4-unicast maximum-paths * set protocols bgp ASN address-family ipv4-unicast maximum-paths-ibgp * set protocols bgp ASN address-family ipv6-unicast maximum-paths * set protocols bgp ASN address-family ipv6-unicast maximum-paths-ibgp --- data/templates/frr/bgp.frr.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'data') diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl index 9340795bc..b7abbff5c 100644 --- a/data/templates/frr/bgp.frr.tmpl +++ b/data/templates/frr/bgp.frr.tmpl @@ -208,6 +208,12 @@ router bgp {{ asn }} aggregate-address {{ ip }}{{ ' as-set' if afi_config.aggregate_address[ip].as_set is defined }}{{ ' summary-only' if afi_config.aggregate_address[ip].summary_only is defined }} {% endfor %} {% endif %} +{% if afi_config.maximum_paths is defined and afi_config.maximum_paths is not none %} + maximum-paths {{ afi_config.maximum_paths }} +{% endif %} +{% if afi_config.maximum_paths_ibgp is defined and afi_config.maximum_paths_ibgp is not none %} + maximum-paths ibgp {{ afi_config.maximum_paths_ibgp }} +{% endif %} {% if afi_config.redistribute is defined and afi_config.redistribute is not none %} {% for protocol in afi_config.redistribute %} {% if protocol == 'table' %} -- cgit v1.2.3