Skip to content

Latest commit

 

History

History
103 lines (79 loc) · 3.45 KB

comware_compare_module.rst

File metadata and controls

103 lines (79 loc) · 3.45 KB

comware_compare

Added in version 1.0

when input command,you need In single quotes.

parameter required default choices comments
cmd yes command.
result yes text path and name into the result parameter which include expected result .
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/


# - name: compare
#   comware_compare: cmd='dis curr conf | include ssh' result='/root/ansible-hpe-cw7-master/gqy/result.txt'
                   username={{ username }} password={{ password }} hostname={{ inventory_hostname }}

Note

This modules Enter the configuration command and compare it with the expected result.For convenience, put the expected result into a text, and enter the text path and name into the result parameter.if display ok,it is consistent.