[PATCH proxmox-ve-rs 03/16] frr-templates: render local-as setting

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

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

diff --git a/proxmox-frr-templates/templates/bgp_router.jinja b/proxmox-frr-templates/templates/bgp_router.jinja
index 35d3f89..7b4a85e 100644
--- a/proxmox-frr-templates/templates/bgp_router.jinja
+++ b/proxmox-frr-templates/templates/bgp_router.jinja
@@ -38,6 +38,10 @@
{% for neighbor_group in router_config.neighbor_groups %}
neighbor {{ neighbor_group.name }} peer-group
neighbor {{ neighbor_group.name }} remote-as {{ neighbor_group.remote_as }}
+{% if neighbor_group.local_as %}
+ neighbor {{ neighbor_group.name }} local-as {{ neighbor_group.local_as.asn }}{% if neighbor_group.local_as.mode %}{{ " " ~ neighbor_group.local_as.mode }}{% endif %}
+
+{% endif %}
{% if neighbor_group.bfd %}
neighbor {{ neighbor_group.name }} bfd
{% endif %}
--
2.47.3