From cedae14e70a0e76ea166a8c30f6cc99ac23c8586 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342-AKURBATOV.local>
Date: Mon, 12 Aug 2024 15:15:04 +0100
Subject: [PATCH] iptrunk - updated port-threshold Nokia side

Fixed var used in calculation of port-threshold in `iptrunk` role.
---
 .../roles/iptrunk/templates/nokia/trunk_interface.j2          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/geant/gap_ansible/roles/iptrunk/templates/nokia/trunk_interface.j2 b/geant/gap_ansible/roles/iptrunk/templates/nokia/trunk_interface.j2
index 7dc479be..bfdb3d26 100644
--- a/geant/gap_ansible/roles/iptrunk/templates/nokia/trunk_interface.j2
+++ b/geant/gap_ansible/roles/iptrunk/templates/nokia/trunk_interface.j2
@@ -72,9 +72,9 @@
               <port-id>{{ member.interface_name }}</port-id>
           </port>
 {% endfor %}
-          {% if (common.minimum_links | int) > 1 %}
+          {% if (wfo_trunk.iptrunk.iptrunk_minimum_links | int) > 1 %}
           <port-threshold>
-            <value>{{ (common.minimum_links | int) - 1 }}</value>
+            <value>{{ (wfo_trunk.iptrunk.iptrunk_minimum_links | int) - 1 }}</value>
             <action>down</action>
           </port-threshold>
           {% endif %}
-- 
GitLab