mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Add integration tests and fix nxos providers (#26913)
* fix issues with python3.x * Add integration testa and fix for nxos_evpn_vni * add nxos_evpn_vni to nxos.yaml * fix get_vtp_config() * add new integration tests * fix rollback * add integration test files
This commit is contained in:
parent
cee9b08e70
commit
9b9a8749da
66 changed files with 1158 additions and 80 deletions
|
@ -83,12 +83,20 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
|
||||
|
||||
def checkpoint(filename, module):
|
||||
commands = ['terminal dont-ask', 'checkpoint file %s' % filename]
|
||||
commands = [{
|
||||
'command': 'terminal dont-ask',
|
||||
'output': 'text', }, {
|
||||
'command': 'checkpoint file %s' % filename,
|
||||
'output': 'text',
|
||||
}]
|
||||
run_commands(module, commands)
|
||||
|
||||
|
||||
def rollback(filename, module):
|
||||
commands = ['rollback running-config file %s' % filename]
|
||||
commands = [{
|
||||
'command': 'rollback running-config file %s' % filename,
|
||||
'output': 'text',
|
||||
}]
|
||||
run_commands(module, commands)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue