From 43c2c77d937fbb635d6b7f4288d4819b0d0254b7 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342-AKURBATOV.local>
Date: Tue, 27 Aug 2024 18:25:12 +0100
Subject: [PATCH] BGP group template: add authentication option

---
 .../templates/routers/nokia/router/bgp_group.j2                | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/bgp_group.j2 b/geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/bgp_group.j2
index fad9162f..78e3216a 100644
--- a/geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/bgp_group.j2
+++ b/geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/bgp_group.j2
@@ -2,6 +2,9 @@
                 <group alu:operation="replace">
                     <group-name>{{ group.name }}</group-name>
                     <admin-state>{{ group.admin_state | default('enable') }}</admin-state>
+                    {% if group.auth_key is defined %}
+                    <authentication-key>{{ group.auth_key }}</authentication-key>
+                    {% endif %}
                     {% if group.nhs is defined %}
                     <next-hop-self>{{ group.nhs }}</next-hop-self>
                     {% endif %}
-- 
GitLab