summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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