Upon a successful cli_config run the module returns the 'commands' variable which lists the commands that were sent to the device.
If one of those commands fails, say the 3rd command, no commands variable is returned.
This fails to let the user know which commands may have been sent to the device.
ISSUE TYPE
Feature Idea
COMPONENT NAME
ansible.netcommon.cli_config
ADDITIONAL INFORMATION
This would solve issues when using the cli_config module and trying to guess which commands were or were not sent upon failure.
task:
ansible.netcommon.cli_config:
commands = |
snmp-server community test
snmp-bad command
snmp-server community test2
Module should return snmp-server community test in commands list. Perhaps even add a failed_commands list?
SUMMARY
Upon a successful cli_config run the module returns the 'commands' variable which lists the commands that were sent to the device. If one of those commands fails, say the 3rd command, no commands variable is returned.
This fails to let the user know which commands may have been sent to the device.
ISSUE TYPE
COMPONENT NAME
ansible.netcommon.cli_config
ADDITIONAL INFORMATION
This would solve issues when using the cli_config module and trying to guess which commands were or were not sent upon failure.
Module should return snmp-server community test in commands list. Perhaps even add a failed_commands list?