Commit Graph

343 Commits (9e241129fe03d28f43a7ff84a8f39aafcc27c9e1)

Author SHA1 Message Date
Peter Sprygada 9e241129fe Merge pull request #4481 from privateip/ios_facts
fixes issue with duplicated commands in CommandRunner
8 years ago
Peter Sprygada 4d79b7fa00 fixes issue with duplicated commands in CommandRunner
The CommandRunner will not allow duplicate commands to be added to the
command stack.  This fix will now catch the exception and continue if
a duplicate command is attempting to be added to the runner instance.
8 years ago
Peter Sprygada 2961087f26 added new functionality to ios_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
Jason Edelman 5dc29dbc8b added a period 8 years ago
Jason Edelman d49d61784f make aliases a list in the docstring 8 years ago
Jason Edelman 164021a6a8 remove commented out code, add alias, and doc 8 years ago
Jason Edelman c009fe7e66 updated version_added for new param 8 years ago
Jason Edelman 996a34fbf7 fixed error handling 8 years ago
Jason Edelman b8f6e130ed fixed docs 8 years ago
Jason Edelman 160fd0126f improve functionality for vlan trunks based on #4082 8 years ago
Roman 78adaf2116 get_url headers param values parsing (#4245) 8 years ago
Peter Sprygada 3480561254 Merge pull request #4319 from gundalow/docs-cumulus
Cumulus - consistent docs formatting
8 years ago
Peter Sprygada 4c5ad987ce Merge pull request #4303 from gundalow/docs-eos
General EOS documentation improvements
8 years ago
Peter Sprygada 0bb0c1b2d8 Merge pull request #4323 from Qalthos/ios_config_bugfix
Fix ios_config broken logic
8 years ago
Peter Sprygada 1a71fff02b Merge pull request #4341 from gundalow/docs-vyos
vyos: Docs fixes
8 years ago
Peter Sprygada 3d37d5c835 Merge pull request #4338 from gundalow/docs-openswitch
openswitch: Docs fixes
8 years ago
Peter Sprygada 56a59824b2 Merge pull request #4336 from gundalow/docs-nxos
NXOS Docs update
8 years ago
Peter Sprygada 04b200059d Merge pull request #4326 from gundalow/docs-junos
junos: Docs update
8 years ago
Alvaro Aleman 12b579f92d Make ios_command example working 8 years ago
John R Barker d05ed8e2d8 ios & iosxr Documentation improvements (#4321) 8 years ago
John R Barker 4148b74433 Update junos_config.py 8 years ago
John R Barker 5f02f54ff9 Update junos_config.py 8 years ago
John Barker 4d0f5cc3f5 vyos: Docs fixes 8 years ago
John Barker d45a75bc01 openswitch: Docs fixes 8 years ago
John Barker d319328d03 NXOS Docs update 8 years ago
John Barker bd08631e58 junos: Docs update 8 years ago
Nathaniel Case 8bb4b9818c Fix ios_config broken logic 8 years ago
John Barker 5599ab14f6 Cumulus - consistent docs formatting 8 years ago
Nathaniel Case 104d753730 Quick fix to nxos_command and minify imports 8 years ago
John R Barker 4ebcdf3efd Merge pull request #4115 from bordeltabernacle/fix/network_module_typos
Fix/network module typos
8 years ago
Kevin Kirsche 9a369b3f1f Update junos_config.py 8 years ago
Kevin Kirsche 9f8bc0158c Fix typo in "ssantaize" typo
ssantaize to santaize
8 years ago
John Barker 79c55534fc General EOS documentation improvements
Typos, formatting, choices.
8 years ago
John R Barker 280522914c State runnng v running
Fix typo
8 years ago
Rob Phoenix aedf21b285 various typo corrections to ios network modules 8 years ago
Peter Sprygada 3d65c82d7c Merge pull request #4196 from privateip/ios_config
adds update_config argument to ios_config
8 years ago
Peter Sprygada fb3916f002 adds update_config argument to ios_config
New argument controls whether or not configuration is applied to the
remote device.
8 years ago
Peter Sprygada fe76a74e8c initial add of new module vyos_config
New module for sending configuration commands to remote devices running
the VyOS operating system.
8 years ago
Peter Sprygada 800bd92026 Merge pull request #4187 from privateip/vyos_facts
WIP initial add of new module vyos_facts
8 years ago
Peter Sprygada 77f6c34ee4 initial add of new module vyos_facts
* adds collection of default facts
* adds collection of configuration facts
* adds collection of lldp neighbors
8 years ago
Peter Sprygada f7bd0f4dfb initial commit of vyos_command module
This adds a new module, vyos_command for sending CLI commands to remote
devices running VyOS operating system.
8 years ago
Peter Sprygada 1240529613 Merge pull request #4180 from privateip/ios_command
removes unneeded check_args function from ios_command
8 years ago
Peter Sprygada 6a8750fe4b Merge pull request #4181 from privateip/ios_config
bug fix in ios_config module for handling config contents
8 years ago
Peter Sprygada 601bb9fad3 bug fix in ios_config module for handling config contents
Config contents when passed via argument were returning a string but
the module expects an instance of NetworkConfig.  This fixes that
problem.
8 years ago
Peter Sprygada daaafb68ab removes unneeded check_args function from ios_command
The module would raise a KeyError trying to find the save_config key
which is not present in the argument_spec.  This was caused by the
check_args() function.  Since the ios shared argument spec isn't used
the check_args function is not needed and has been removed.
8 years ago
Peter Sprygada d8d69904a7 fixup ios_template module to use NetworkModule
This removes the get_module() factory function and directly creates
an instance of NetworkModule.  This commit includes some minor clean
up to transition to the ios shared module for 2.2
8 years ago
Peter Sprygada 359f1747be Merge pull request #4153 from privateip/ios_command
fix up ios_command to use NetworkModule
8 years ago
Peter Sprygada ebc9f092ad fix up ios_command to use NetworkModule
* using check mode will now block all commands except show commands
* module will no longer allow config mode commands
* check args for unused values and issue warning
8 years ago
Peter Sprygada 5f08277eb4 refactor ios_config for network module
This refactors the ios_config module to use the network module added
in 2.2 to simplify common network functions

new features

* add src, dest arguments for working with config
* results now return flag if the config was saved or not
* adds append argument for updating the dest file (when dest is used)
8 years ago
Peter Sprygada b2202c6da8 update ios_facts module to use NetworkModule
minor update to ios_facts to remove get_module() in favor of NetworkModule
8 years ago