From 379c6b0adf17f4eddef4226cc56e50084ba09c93 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <ak@geant.org>
Date: Wed, 2 Oct 2024 18:15:03 +0100
Subject: [PATCH] card FP (accounting) is only needed for PE

---
 geant/gap_ansible/roles/bc_templates/routers/nokia/cards.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/cards.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/cards.j2
index 578a0930..e58d8ded 100644
--- a/geant/gap_ansible/roles/bc_templates/routers/nokia/cards.j2
+++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/cards.j2
@@ -35,7 +35,7 @@
       {% endfor %}
     {% endif %}
     {#Policy accounting config#}
-    {% if card.fps is defined %}
+    {% if (router_role == 'pe' or is_pe_promotion_wf) and card.fps is defined %}
       {% for fp in card.fps %}
     <fp>
       <fp-number>{{ fp.id }}</fp-number>
-- 
GitLab