From af2f09b4c1ccbf56537823db768705a31573479b Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <ak@geant.org>
Date: Wed, 16 Oct 2024 17:24:49 +0200
Subject: [PATCH] Add `set_config_mode` in sros.py

---
 geant/gap_ansible/plugins/netconf/sros.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/geant/gap_ansible/plugins/netconf/sros.py b/geant/gap_ansible/plugins/netconf/sros.py
index 6c4f3928..86076cf0 100644
--- a/geant/gap_ansible/plugins/netconf/sros.py
+++ b/geant/gap_ansible/plugins/netconf/sros.py
@@ -102,3 +102,8 @@ class Netconf(NetconfBase):
         """
         resp = self.m.commit(confirmed=confirmed, timeout=timeout, persist=persist, comment=comment)
         return resp.data_xml if hasattr(resp, "data_xml") else resp.xml
+
+    def set_config_mode(self, config_mode):
+        """Set the config_mode passed from the module."""
+        if config_mode:
+            self._config_mode = config_mode
-- 
GitLab