[PATCH proxmox-ve-rs 2/9] frr-templates: render redistribute setting

Stefan Hanreich
2026-05-04T16:32:18Z

proxmox-frr-templates/templates/ospfd.jinja | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/proxmox-frr-templates/templates/ospfd.jinja b/proxmox-frr-templates/templates/ospfd.jinja
index 0a59623..4ba609f 100644
--- a/proxmox-frr-templates/templates/ospfd.jinja
+++ b/proxmox-frr-templates/templates/ospfd.jinja
@@ -3,6 +3,10 @@
!
router ospf
ospf router-id {{ ospf.router.router_id }}
+{% for redistribution in ospf.router.redistribute %}
+ redistribute {{ redistribution.source }}{% if redistribution.metric is defined %} metric {{ redistribution.metric }}{% endif %} {% if redistribution.route_map is defined %} route-map {{ redistribution.route_map }}{% endif %}
+
+{% endfor %}
exit
{% endif %}
{% for interface_name, interface_config in ospf.interfaces|items %}
--
2.47.3