Skip to content

Latest commit

 

History

History
126 lines (99 loc) · 4.8 KB

comware_rollback_module.rst

File metadata and controls

126 lines (99 loc) · 4.8 KB

comware_rollback

Added in version 1.8

Rollback theconfiguration to the file

parameter required default choices comments
filename no startup.cfg Name of file that will be used when rollback the conifg to flash.
comparefile no Name of file that will be used when compared with filename file. if not set, no compared action executed.
clean no false
  • true
  • false
delete the rollback point
diff_file no File that will be used to store the diffs. Relative path is location of ansible playbook. If not set, no diffs are saved.
hostname yes IP Address or hostname of the Comware 7 device that has NETCONF enabled
username yes Username used to login to the switch
password yes Password used to login to the switch
port no 830 NETCONF port number
look_for_keys no False Whether searching for discoverable private key files in ~/.ssh/


# rollback config to myfile.cfg (in flash)
- comware_rollback: filename=myfile.cfg username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

# rollback config to startup.cfg (in flash)
- comware_rollback: username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

# delete rollback point 123.cfg (in flash)
- comware_rollback: filename=123.cfg clean=true username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

# files compared
- comware_rollback: filename=123.cfg comparefile=test.cfg username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
  diff_file='/root/ansible-hpe-cw7-master/diffs.diff'

Note

This modules rollback the config to startup.cfg, or the suppliedfilename, in flash. It is notchanging the config file to load on next boot.