summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authoromnom62 <omnom62@outlook.com>2026-03-06 07:38:15 +1000
committeromnom62 <omnom62@outlook.com>2026-03-06 07:38:15 +1000
commitde3d09eaa33d3553e656362ee398d0848c2fad01 (patch)
tree2b56ddad4ce847db33d547d3d2e3dcb5a87726fc /plugins
parent63cde943cd57ef999e1c6f6edfec677e099f39f9 (diff)
downloadrest.vyos-de3d09eaa33d3553e656362ee398d0848c2fad01.tar.gz
rest.vyos-de3d09eaa33d3553e656362ee398d0848c2fad01.zip
Auto-save fix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/module_utils/vyos.py15
1 files 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