From 9573cf1c66c41f5a9a6a6e8fcdcb0ae083480fc8 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <ak@geant.org>
Date: Thu, 16 Jan 2025 16:46:10 +0000
Subject: [PATCH] SBP template update - add cflowd static config

---
 geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2 | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2 b/geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2
index 07b1b5d4..90c4faef 100644
--- a/geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2
+++ b/geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2
@@ -19,6 +19,14 @@
                     <description>SRV_L3VPN CUSTOMER {{ partner_name }} {{ '#'+ap.custom_service_name if ap.custom_service_name is string }} ${{ ap.sbp.gs_id }} | ASN{{ partner.asn }} | </description>
                 {% endif %}
                     <ip-mtu>{{ sbp_params.ip_mtu }}</ip-mtu>
+                    <cflowd-parameters>
+                        <sampling>
+                            <sampling-type>unicast</sampling-type>
+                            <type>interface</type>
+                            <direction>ingress-only</direction>
+                            <sample-profile>1</sample-profile>
+                        </sampling>
+                    </cflowd-parameters>
                     <sap>
                       {% if ap.sbp.is_tagged %}
                         <sap-id>{{ lag_name }}:{{ ap.sbp.vlan_id }}</sap-id>
-- 
GitLab