From 05576d514cf1b3218d3e9350bdb08b501ae4c04b Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <ak@geant.org>
Date: Wed, 30 Oct 2024 11:21:17 +0000
Subject: [PATCH] Add `local-as` under BGP base template

---
 .../roles/bc_templates/routers/nokia/router/bgp_base.j2      | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/bgp_base.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/bgp_base.j2
index 79129863..5a5fd629 100644
--- a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/bgp_base.j2
+++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/bgp_base.j2
@@ -7,6 +7,11 @@
                 </family>
                 {% endif %}
               {% endif %}
+              {% if bgp_base_obj.local_as is defined %}
+                <local-as alu:operation="replace">
+                    <as-number>{{ bgp_base_obj.local_as }}</as-number>
+                </local-as>
+              {% endif %}
               {% if bgp_base_obj.best_path_selection is defined %}
                 <best-path-selection>
                 {% for bps in bgp_base_obj.best_path_selection %}
-- 
GitLab