Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli_config - Return commands already sent to device on failure in commands variable #478

Open
mitchmahan opened this issue Oct 23, 2022 · 1 comment
Labels
feature This issue/PR relates to a feature request.

Comments

@mitchmahan
Copy link

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
  • 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?

@Qalthos Qalthos added the feature This issue/PR relates to a feature request. label Oct 26, 2022
@Qalthos Qalthos removed their assignment Nov 9, 2022
@mpaccione
Copy link

mpaccione commented Nov 9, 2022

Hi Kate, would like to see this implemented as well.
@Qalthos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request.
Projects
None yet
Development

No branches or pull requests

3 participants