[PATCH proxmox-ve-rs 04/16] frr-templates: render community lists in templates

Stefan Hanreich
2026-04-14T16:33:31Z

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

diff --git a/proxmox-frr-templates/templates/bgpd.jinja b/proxmox-frr-templates/templates/bgpd.jinja
index e530995..4c9dce1 100644
--- a/proxmox-frr-templates/templates/bgpd.jinja
+++ b/proxmox-frr-templates/templates/bgpd.jinja
@@ -33,3 +33,9 @@ router bgp {{ router_config.asn }} view {{ view_id }}
{{ bgp_router(router_config) -}}
exit
{% endfor %}
+{% for community_list_name, community_list in bgp.ext_community_lists|items %}
+!
+{% for entry in community_list.entries %}
+bgp extcommunity-list {{ community_list.type }} {{ community_list_name }} {{ entry.action }} {{ entry.match_entry.type }} {{ entry.match_entry.value }}
+{% endfor %}
+{% endfor %}
--
2.47.3