summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-09-11 09:29:36 -0500
committerGitHub <noreply@github.com>2025-09-11 09:29:36 -0500
commitb3daa156d016b57b65a4b5f2fb93fd0c3b168217 (patch)
tree994ea586ff5f47c571c5dfe52781de26427580c4 /data
parent7a1f2e22c2460299ce75d41b21baff92ba1d96a5 (diff)
parentcb91488db79634f7c1759a841defdf60c3dcf42c (diff)
downloadvyos-1x-b3daa156d016b57b65a4b5f2fb93fd0c3b168217.tar.gz
vyos-1x-b3daa156d016b57b65a4b5f2fb93fd0c3b168217.zip
Merge pull request #4704 from hedrok/T7297-fix-ospf-redistribute-table
ospf: T7297: fix redistribute-table
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/ospfd.frr.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/frr/ospfd.frr.j2 b/data/templates/frr/ospfd.frr.j2
index 79824fb64..7277597e7 100644
--- a/data/templates/frr/ospfd.frr.j2
+++ b/data/templates/frr/ospfd.frr.j2
@@ -220,7 +220,7 @@ router ospf {{ 'vrf ' ~ vrf if vrf is vyos_defined }}
{% for protocol, options in redistribute.items() %}
{% if protocol == 'table' %}
{% for table, table_options in options.items() %}
- redistribute {{ protocol }} {{ table }} {{ 'metric ' ~ table_options.metric if table_options.metric is vyos_defined }} {{ 'metric-type ' ~ table_options.metric_type if table_options.metric_type is vyos_defined }} {{ 'route-map ' ~ table_options.route_map if table_options.route_map is vyos_defined }}
+ redistribute table-direct {{ table }} {{ 'metric ' ~ table_options.metric if table_options.metric is vyos_defined }} {{ 'metric-type ' ~ table_options.metric_type if table_options.metric_type is vyos_defined }} {{ 'route-map ' ~ table_options.route_map if table_options.route_map is vyos_defined }}
{% endfor %}
{% else %}
redistribute {{ protocol }} {{ 'metric ' ~ options.metric if options.metric is vyos_defined }} {{ 'metric-type ' ~ options.metric_type if options.metric_type is vyos_defined }} {{ 'route-map ' ~ options.route_map if options.route_map is vyos_defined }}