mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix rollback option in cli_config module (#44834)
* Fix rollback option in cli_config module * Update rollback flag in cliconf plugins * Add rollback api for junos cliconf plugin * Update doc * Update doc
This commit is contained in:
@@ -307,6 +307,15 @@ class CliconfBase(AnsiblePlugin):
|
||||
"""
|
||||
return self._connection.method_not_found("discard_changes is not supported by network_os %s" % self._play_context.network_os)
|
||||
|
||||
def rollback(self, rollback_id, commit=True):
|
||||
"""
|
||||
|
||||
:param rollback_id: The commit id to which configuration should be rollbacked
|
||||
:param commit: Flag to indicate if changes should be committed or not
|
||||
:return: Returns diff between before and after change.
|
||||
"""
|
||||
pass
|
||||
|
||||
def copy_file(self, source=None, destination=None, proto='scp', timeout=30):
|
||||
"""Copies file over scp/sftp to remote device
|
||||
|
||||
|
||||
Reference in New Issue
Block a user