Commit Graph

14 Commits (6c4d71a7fab60601846363506bc8eebe9c52c240)

Author SHA1 Message Date
Peter Sprygada 8afe2402db adds exception handling for AddConditionError (#5124)
AddConditionErrors are now handled by nxos_command and a well formed error
is returned from the module
8 years ago
Peter Sprygada 2e357e262c adds exception handling to nxos_command for FailedConditionalError
This adds exception handling as per ansible/ansible#17638 to the
nxos_command module.
8 years ago
Andrew Gaffney 0c05f0dfa4 Fix missing colons in network module examples (#4778) 8 years ago
Peter Sprygada 18e53bc804 fix example in nxos_command module 8 years ago
Peter Sprygada 85b0bbc5c0 added new functionality to nxos_command
* commands argument now accepts a dict arguments[1]
* waitfor has been renamed to wait_for with an alias to waitfor
* only show commands are allowd when check mode is specified
* config mode is no longer allowed in the command stack
* add argument match with valid values any, all

[1] The commands argument will now accept a dict argument that can
specifiy the output format of the command.  To specify a dict argument
use the form of { command: <str>, output: <str>, prompt: <str>,
response: <str> }.  Command and output are required arguments. Output
accepts valid values text and json.
8 years ago
John Barker d319328d03 NXOS Docs update 8 years ago
Nathaniel Case 104d753730 Quick fix to nxos_command and minify imports 8 years ago
Michael Scherer cc99fe24fc Convert the network subfolder to py3/py2.4 syntax (#3690) 9 years ago
Nathaniel Case b466f7bbe2 Remove unnecessary exception from nxos_command (#3521) 9 years ago
Peter Sprygada 11c00c2278 cleans up nxos_command and adds some additonal info on exception
This cleans up some of the nxos_command module code function names to
be more consistent and adds additional information of failures
9 years ago
Peter Sprygada eef9c54874 update to nxos_command with additional exception handling
This update adds exception handling to catch errors when trying to parse
command output to json.  It also removes the dependency on importing json
opting to use the AnsibleModule methods instead
9 years ago
chouseknecht 573ba42b03 Moved Conditional class to netcfg. 9 years ago
Peter Sprygada c566cb3277 update nxos_command doc strings and return values
This modifies the return values to make them consistent across all
network command modules.  The module now returns stdout, stdout_lines
and failed_conditionals
9 years ago
Peter Sprygada 32e238a8f0 initial add of new module nxos_command
This adds a new module nxos_command that can be used to send arbitrary
commands to NXOS devices.  The module includes an argument that allows
the responses to be evaluated and causes the module not to return
control to the playbook until a set of conditions has been met.
9 years ago