summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-02 08:39:23 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-02 10:01:08 +0000
commitb798603e21faad8b6cf4d78a2900ea54703fecef (patch)
treedd277692f50d4cf7e1991f806ca0733b55476f56 /data
parenta2356f7418d4ba27b0cd08a7506d672514729f3a (diff)
downloadvyos-1x-b798603e21faad8b6cf4d78a2900ea54703fecef.tar.gz
vyos-1x-b798603e21faad8b6cf4d78a2900ea54703fecef.zip
ospfv3: T5717: allow metric and metric-type on redistributed routes
Example: vyos@vyos# set protocols ospfv3 redistribute bgp Possible completions: metric OSPF default metric metric-type OSPF metric type for default routes (default: 2) route-map Specify route-map name to use (cherry picked from commit ed2c288c8a9031f91acf76d20b84e2002696981c)
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/ospf6d.frr.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/frr/ospf6d.frr.j2 b/data/templates/frr/ospf6d.frr.j2
index b0b5663dd..5f758f9e5 100644
--- a/data/templates/frr/ospf6d.frr.j2
+++ b/data/templates/frr/ospf6d.frr.j2
@@ -109,7 +109,7 @@ router ospf6 {{ 'vrf ' ~ vrf if vrf is vyos_defined }}
{% endif %}
{% if redistribute is vyos_defined %}
{% for protocol, options in redistribute.items() %}
- redistribute {{ protocol }} {{ 'route-map ' ~ options.route_map if options.route_map is vyos_defined }}
+ 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 }}
{% endfor %}
{% endif %}
exit