summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2025-02-13 19:36:35 +0200
committerGitHub <noreply@github.com>2025-02-13 19:36:35 +0200
commitc2238596f7994e51974e9a517fb7ab7e948e955f (patch)
tree407e41789780a2d19003e36800d6588dda8d00ee /data/templates/frr
parent5ddcfdb4c9352e1178f275eeb317b049795fd1a8 (diff)
parentb702dfc362d16e11d96debc39a2dcdcc72619277 (diff)
downloadvyos-1x-c2238596f7994e51974e9a517fb7ab7e948e955f.tar.gz
vyos-1x-c2238596f7994e51974e9a517fb7ab7e948e955f.zip
Merge pull request #4346 from c-po/bgp-T7161
T7161: fix BGP IPv4/IPv6 unicast AFI "redistribute table" command
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/bgpd.frr.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index 51a3f2564..2f3719fdf 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -310,7 +310,9 @@ router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }}
{% if afi_config.redistribute is vyos_defined %}
{% for protocol, protocol_config in afi_config.redistribute.items() %}
{% if protocol == 'table' %}
- redistribute table {{ protocol_config.table }}
+{% for table in protocol_config %}
+ redistribute table-direct {{ table }}
+{% endfor %}
{% else %}
{% set redistribution_protocol = protocol %}
{% if protocol == 'ospfv3' %}