From de3d09eaa33d3553e656362ee398d0848c2fad01 Mon Sep 17 00:00:00 2001 From: omnom62 Date: Fri, 6 Mar 2026 07:38:15 +1000 Subject: Auto-save fix --- plugins/module_utils/vyos.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/vyos.py b/plugins/module_utils/vyos.py index aa17a9f..40926d5 100644 --- a/plugins/module_utils/vyos.py +++ b/plugins/module_utils/vyos.py @@ -155,10 +155,12 @@ class VyOSModule: commands=payload_commands ) + self.save_config() + self.module.exit_json( changed=True, commands=commands, - response=response + response=response, ) # # Delete config @@ -174,4 +176,13 @@ class VyOSModule: changed=True, commands=cmds, response=response - ) \ No newline at end of file + ) + + def save_config(self): + + response = self._send( + path="/config-file", + op="save" + ) + + return True \ No newline at end of file -- cgit v1.2.3