Commit graph

348 commits

Author SHA1 Message Date
Peter Sprygada
c23f57c0ef Merge pull request #4482 from privateip/ios_config
merge functions from ios into ios_config
2016-08-22 15:43:36 -04:00
Peter Sprygada
23f067a0ec Merge pull request #4484 from privateip/nxos_command
added new functionality to nxos_command
2016-08-22 15:43:26 -04:00
codyrat
50133f1ed6 re.match for numeric only for kwargs[key] = int(value) (#4495) 2016-08-22 15:00:33 -04:00
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.
2016-08-22 14:01:06 -04:00
Peter Sprygada
9e241129fe Merge pull request #4481 from privateip/ios_facts
fixes issue with duplicated commands in CommandRunner
2016-08-22 12:33:29 -04:00
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.
2016-08-22 11:58:36 -04:00
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.
2016-08-22 11:46:27 -04:00
Peter Sprygada
f6dab64bc5 merge functions from ios into ios_config
* merge changes from ios shared module functions into ios_config.
* add src argument to provide path to config file
* add new choice to match used to ignore current running config
* add update argument with choices merge or check
* add backup argument to backup current running config to control host
* add defaults argument to control collection of config with or withoutdefaults
* add save argument to save current running config to startup config
* add state argument to control state of config file
* deprecated force argument, use match=none instead
2016-08-20 08:11:20 -04:00
Jason Edelman
5dc29dbc8b added a period 2016-08-18 07:21:32 -04:00
Jason Edelman
d49d61784f make aliases a list in the docstring 2016-08-18 07:00:19 -04:00
Jason Edelman
164021a6a8 remove commented out code, add alias, and doc 2016-08-18 06:53:04 -04:00
Jason Edelman
c009fe7e66 updated version_added for new param 2016-08-17 19:43:32 -04:00
Jason Edelman
996a34fbf7 fixed error handling 2016-08-17 19:19:07 -04:00
Jason Edelman
b8f6e130ed fixed docs 2016-08-17 19:15:25 -04:00
Jason Edelman
160fd0126f improve functionality for vlan trunks based on #4082 2016-08-17 19:11:50 -04:00
Roman
78adaf2116 get_url headers param values parsing (#4245) 2016-08-10 23:49:58 +02:00
Peter Sprygada
3480561254 Merge pull request #4319 from gundalow/docs-cumulus
Cumulus - consistent docs formatting
2016-08-09 07:52:59 -04:00
Peter Sprygada
4c5ad987ce Merge pull request #4303 from gundalow/docs-eos
General EOS documentation improvements
2016-08-09 07:52:26 -04:00
Peter Sprygada
0bb0c1b2d8 Merge pull request #4323 from Qalthos/ios_config_bugfix
Fix ios_config broken logic
2016-08-09 07:38:38 -04:00
Peter Sprygada
1a71fff02b Merge pull request #4341 from gundalow/docs-vyos
vyos: Docs fixes
2016-08-09 07:38:08 -04:00
Peter Sprygada
3d37d5c835 Merge pull request #4338 from gundalow/docs-openswitch
openswitch: Docs fixes
2016-08-09 07:37:22 -04:00
Peter Sprygada
56a59824b2 Merge pull request #4336 from gundalow/docs-nxos
NXOS Docs update
2016-08-09 07:36:21 -04:00
Peter Sprygada
04b200059d Merge pull request #4326 from gundalow/docs-junos
junos: Docs update
2016-08-09 07:35:26 -04:00
Alvaro Aleman
12b579f92d Make ios_command example working 2016-08-08 14:42:39 +02:00
John R Barker
d05ed8e2d8 ios & iosxr Documentation improvements (#4321) 2016-08-05 19:26:09 -04:00
John R Barker
4148b74433 Update junos_config.py 2016-08-05 17:01:52 +01:00
John R Barker
5f02f54ff9 Update junos_config.py 2016-08-05 16:38:58 +01:00
John Barker
4d0f5cc3f5 vyos: Docs fixes 2016-08-05 15:14:04 +01:00
John Barker
d45a75bc01 openswitch: Docs fixes 2016-08-05 14:40:52 +01:00
John Barker
d319328d03 NXOS Docs update 2016-08-05 13:01:13 +01:00
John Barker
bd08631e58 junos: Docs update 2016-08-04 17:16:38 +01:00
Nathaniel Case
8bb4b9818c Fix ios_config broken logic 2016-08-04 11:24:28 -04:00
John Barker
5599ab14f6 Cumulus - consistent docs formatting 2016-08-04 12:18:06 +01:00
Nathaniel Case
104d753730 Quick fix to nxos_command and minify imports 2016-08-03 18:06:33 -04:00
John R Barker
4ebcdf3efd Merge pull request #4115 from bordeltabernacle/fix/network_module_typos
Fix/network module typos
2016-08-03 10:15:05 -07:00
Kevin Kirsche
9a369b3f1f Update junos_config.py 2016-08-02 17:35:02 -04:00
Kevin Kirsche
9f8bc0158c Fix typo in "ssantaize" typo
ssantaize to santaize
2016-08-02 17:32:52 -04:00
John Barker
79c55534fc General EOS documentation improvements
Typos, formatting, choices.
2016-08-02 21:46:08 +01:00
John R Barker
280522914c State runnng v running
Fix typo
2016-08-02 18:20:13 +01:00
Rob Phoenix
aedf21b285 various typo corrections to ios network modules 2016-07-27 09:14:06 +01:00
Peter Sprygada
3d65c82d7c Merge pull request #4196 from privateip/ios_config
adds update_config argument to ios_config
2016-07-15 18:03:25 -04:00
Peter Sprygada
fb3916f002 adds update_config argument to ios_config
New argument controls whether or not configuration is applied to the
remote device.
2016-07-15 17:56:34 -04:00
Peter Sprygada
fe76a74e8c initial add of new module vyos_config
New module for sending configuration commands to remote devices running
the VyOS operating system.
2016-07-15 16:11:44 -04:00
Peter Sprygada
800bd92026 Merge pull request #4187 from privateip/vyos_facts
WIP initial add of new module vyos_facts
2016-07-15 05:25:53 -07:00
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
2016-07-15 07:59:49 -04:00
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.
2016-07-14 07:14:30 -07:00
Peter Sprygada
1240529613 Merge pull request #4180 from privateip/ios_command
removes unneeded check_args function from ios_command
2016-07-13 14:54:04 -07:00
Peter Sprygada
6a8750fe4b Merge pull request #4181 from privateip/ios_config
bug fix in ios_config module for handling config contents
2016-07-13 14:51:32 -07:00
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.
2016-07-13 14:45:26 -07:00
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.
2016-07-13 14:44:03 -07:00