diff --git a/geant/gap_ansible/plugins/netconf/sros.py b/geant/gap_ansible/plugins/netconf/sros.py
index 6c4f39289e3f3a975169374aad60540fec560ae6..86076cf0820d6c4fa33c6611b35245a404c8d9a8 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