Peter Sprygada
6b8a92045f
handles config replace properly in eos_template
...
fixes 3366
2016-04-05 22:58:04 -04:00
Peter Sprygada
cf01087a30
refactor iosxr_template module to remove old diff functions
...
this replaces the old diff functions with the netcfg shared module for
handling configuration diffs between running and candidate
2016-04-04 16:15:39 -04:00
Peter Sprygada
0f724f625d
refactor iosxr_config module to remove old diff functions
...
this replaces the old diff functions with the netcfg lib for handling
configuration diffs between running and candidate configurations
2016-04-04 16:15:31 -04:00
Peter Sprygada
86f9c672f0
cleanup iosxr_command module to be consistent with other network modules
...
this cleans up some of the function calls and output keys to be consistent
with other command modules
2016-04-04 16:15:23 -04:00
Peter Sprygada
25baca1eb8
refactors nxos_template and removes diff functions
...
replaces the diff functions with the netcfg shared module for handling
configuration diff
2016-04-04 08:16:03 -04:00
Peter Sprygada
639e324fdb
refactors nxos_config and removes diff functions
...
this refactors the nxos_config module removing the diff functions and
replacing with the netcfg shared module
2016-04-04 08:15:51 -04:00
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
2016-04-04 08:15:43 -04:00
Peter Sprygada
ad519c2f5c
refactors eos_template to remove diff functions
...
replaces functions with netcfg shared library for handling configuration
diffs
2016-04-04 07:21:00 -04:00
Peter Sprygada
5d0ee49067
refactors eos_config to remove config diff functions
...
replaces with netcfg shared library for handling configuration diffs
2016-04-04 07:20:48 -04:00
Peter Sprygada
c500b2ff99
refactors the ios_template module to use netcfg diff
...
removes the functions for performing configuration diffs to use the
netcfg shared lib
2016-04-04 07:02:58 -04:00
Peter Sprygada
df32f64898
refactor ios_config to use netcfg diff shared lib
...
Move the configuration diff code from the module to the shared lib
2016-04-04 07:02:48 -04:00
Toshio Kuratomi
a2f41dfb04
Give headers a default so that we can add to it.
2016-03-24 07:24:28 -07:00
Peter Sprygada
bff7cb6cad
fixes #3274
2016-03-21 07:08:23 -05:00
Toshio Kuratomi
d71b9bae89
If file attribs are specified set them even if file already exists.
...
Fixes #11821
2016-03-20 07:36:06 -07:00
Toshio Kuratomi
eebd6c93ba
Fix documentation
2016-03-18 07:51:58 -07:00
James Cammarata
d7422c02ad
Merge pull request #3010 from grybak-arista/exit-filter
...
Filter exit commands when no other commands are included
2016-03-17 13:11:30 -04:00
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
2016-03-13 16:27:21 -07:00
Peter Sprygada
f46ebf2c30
Merge pull request #3141 from privateip/module_ops_command
...
initial add of ops_command module
2016-03-11 23:11:43 -05:00
Peter Sprygada
154fc16b0e
Merge pull request #3142 from privateip/module_ops_config
...
initial add of ops_config module
2016-03-11 22:58:32 -05:00
Peter Sprygada
c0de719539
Merge pull request #3222 from jrk07/patch-1
...
Merged thanks @jrk07
2016-03-11 22:29:11 -05:00
Peter Sprygada
d4e687f894
doc string fixes for eos_config
...
This updates eos_config with some fixes to the documentation string
2016-03-11 22:11:20 -05:00
Peter Sprygada
416dd73b09
bugfix in eos_template for backing up config
...
eos_template would connect to the remote device to get the running config
for backup even if backup is not needed.
2016-03-11 22:11:12 -05:00
Peter Sprygada
cf3287b312
minor function clean ups in eos_command
...
This commit cleans up a couple of functions and removes the json
import to use the json methods from AnsibleModule
2016-03-11 22:10:59 -05:00
jrk07
3cc277bc08
Doc Update: ios_template.py title and example
...
ios_template.py was named ios_config when viewing docs. The examples also had net_config still. Updated those here.
2016-03-10 12:54:41 -08:00
Peter Sprygada
e3ca92e97d
bugfix for ios_config module
...
This commit address a bug in the ios_config module when using the
match: strict argument. When the argument is used, the module will
compare the configuration block same as match: exact which is not the
intended behavior. This commit updates the behavior to propertly handle
the strict argument.
2016-03-10 13:34:04 -05:00
Peter Sprygada
11056c8ed2
bugfix for handling match=strict in eos_config
...
Resolves an issue where match=strict would act like match=exact when
evaluating the configuration
2016-03-10 13:33:48 -05:00
Peter Sprygada
e9ab4d688d
bugfix for handling match=strict in iosxr_config
...
Resolves an issue where match=strict would act like match=exact when
evaluating the configuration
2016-03-10 13:33:41 -05:00
Peter Sprygada
a7f67921fd
bugfix for handling match=strict in nxos_config
...
Resolves an issue where match=strict would act like match=exact when
evaluating the configuration
2016-03-10 13:33:33 -05:00
Peter Sprygada
c17a2c0206
Merge pull request #3138 from privateip/module_ops_template
...
refactor arguments in ops_template
2016-03-09 22:15:53 -05:00
Matt Martz
3c59eedb9b
Don't pass follow_redirects to fetch_url, use module.params instead
2016-03-07 15:34:22 -06:00
Peter Sprygada
b7d7bfa0b1
initial add of ops_config module
...
This commit adds a new module, ops_config, that allows playbook designers
to create tasks for configuring OpenSwitch over the CLI. The module
is designed to work directly with configuration mode in OpenSwitch and
therefore only supports the CLI transport option
2016-03-07 06:43:14 -05:00
moyashiki
e851e91b49
Fix ios_command fix
...
This is not valid YAML commands. So fix it.
2016-03-02 22:13:03 +09:00
Sam Wilson
23b98dae3e
Fixed BOOLEANS rendering in docsite
2016-03-02 08:38:35 +11:00
Brian Coca
0bbb7ba38d
Merge pull request #3135 from mscherer/improve_uri_doc
...
Fix non RFC 2606 domain name in doc
2016-02-29 17:52:35 -05:00
Peter Sprygada
1de18ca36b
initial add of ops_command module
...
This commit adds a new module, ops_command, that handles executing commands
on OpenSwitch over the CLI. Since this module is designed to work with the
OpenSwitch CLI, it only supports the CLI transport option
2016-02-29 11:15:29 -05:00
Toshio Kuratomi
7088f72742
At least for now, set body to raw as it can be either a dict or jsonified-str
...
Since our validation does conversion as well as validation, I'm not sure
this is entirely correct. May need to take a look at our conversion
code and re-examine to be sure we're doing it right.
2016-02-29 07:20:39 -08:00
Toshio Kuratomi
3853d2a9a6
Change parameter to type=path
...
Read as binary for python3 preparedness
2016-02-29 00:38:10 -08:00
Peter Sprygada
b3f232434a
refactor arguments in ops_template
...
This commit refactors the arugments used in ops_template to be strictly
typed and handle by declarative / rest and cli based configurations. It
also removes old arguments not supported and cleans up the documentation
strings
2016-02-28 23:44:17 -05:00
Michael Scherer
d81a6740ec
Fix non RFC 2606 domain name in doc
2016-02-28 11:51:17 +01:00
Peter Sprygada
616b7564ef
fixes issue with return docstring
...
This commit fixes an issue with the return doc string. The old line
was removed that would prevent the docs form being built correctly
2016-02-26 11:07:25 -05:00
Brian Coca
011c558927
corrected version added
2016-02-24 21:30:09 -05:00
Brian Coca
7162623e86
Merge pull request #2913 from msvab/devel
...
Clarify get_url timeout documentation
2016-02-23 13:30:39 -05:00
Matt Martz
adf2125339
Indicate in notes that the dependency on httplib2 was removed for v2.1
2016-02-23 11:53:02 -06:00
Matt Martz
7f206fdfe8
Drop dependency on httplib2 in the uri module, instead using ansible.module_utils.urls
2016-02-23 10:35:11 -06:00
Brian Coca
148fa183de
Merge pull request #3014 from bcoca/uri_fixes
...
fixes for uri module
2016-02-23 11:23:10 -05:00
Peter Sprygada
7a19e16dca
minor bugfixes for junos_config return values
...
The junos_config now properly returns updates and reponses
2016-02-20 16:25:57 -05:00
Peter Sprygada
87cee15a85
initial add of ops_template module
...
This adds a new module ops_template used for configuring OpenSwitch
using local declarative config modules
2016-02-17 16:23:41 +00:00
Peter Sprygada
567e09c933
bugfix for missing function name in ios_command
...
This provides a minor bugfix for a missing function name in the ios_command
network module
2016-02-17 13:49:08 +00:00
Matt Martz
c7845456a6
Various simple linting type cleanups on modules
2016-02-16 15:58:44 -06:00
Peter Sprygada
0e270da561
initial add of iosxr_config module
...
This adds a new module, iosxr_config, that can be used for configuring
Cisco IOS XR devices. It is provides a set of arguments for sending
configuration commands to the device over cli
2016-02-12 17:04:30 -05:00