From b0a2b213219fe808568294f80d9a1413dbb3152a Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342-AKURBATOV.local>
Date: Thu, 19 Sep 2024 11:32:41 +0100
Subject: [PATCH] cflowd - `metering_process` as option

`metering_process` is not working in SR2se.
Making it optional and commenting out in group_vars
---
 geant/gap_ansible/roles/bc_templates/routers/nokia/cflowd.j2 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/cflowd.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/cflowd.j2
index ef8dcc9f..385603db 100644
--- a/geant/gap_ansible/roles/bc_templates/routers/nokia/cflowd.j2
+++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/cflowd.j2
@@ -10,7 +10,9 @@
     <sample-profile>
         <profile-id>{{ profile.id }}</profile-id>
         <sample-rate>{{ profile.sample_rate }}</sample-rate>
+        {% if profile.metering_process is defined %}
         <metering-process>{{ profile.metering_process }}</metering-process>
+        {% endif %}
     </sample-profile>
       {% endfor %}
     {% endif %}
-- 
GitLab