summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils/ios.py
Commit message (Collapse)AuthorAgeFilesLines
* add new features to ios shared modulePeter Sprygada2016-07-111-67/+109
| | | | | | | | * add load_config() for loading a set of configuration commands * add load_candidate() function for loading a candidate config * updates shared module to provide NetworKModule instead of get_module * fixes Cli transport implementation for 2.2 refactor * updates ios documentation fragments with new options
* adds restconf transport option to ios shared modulePeter Sprygada2016-07-091-2/+163
|\ | | | | | | | | | | | | | | | | | | | | includes changes from PR ansible/ansible#16636 and refactors for the NetworkModule changes new features * ios now supports transport=restcon will additional arguments * ModuleStub refactored into common network shared module * import temporary get_module() function (to be removed prior to 2.2 final)
| * Implement IOS restconfPeter Sprygada2016-07-071-2/+159
|/
* Net mod ios (#16426)Nathaniel Case2016-07-071-152/+50
| | | | | | | | | | | | | | * Update IOS with new NetworkModule * Remove redundant EOS code * `authorize` can get rolled into NetCli * Fix up IOS to where EOS is. * Update IOSXR for NetworkModule * collections is unnecessary
* fixes issues with authenticating using ssh-agent for ios devicesPeter Sprygada2016-06-061-2/+7
| | | | | | | Exception was raised when trying to use ssh-agent for authentication to ios devices. This fix enables ssh-agent and enable use of password protected ssh keys. There is one additional fix to capture authentication exceptions nicely.
* Clarify exception handling in net modules (#15507)Nathaniel Case2016-04-251-25/+22
| | | | | | | | | | | | | | | | | | | | * Clarify exception handling in EOS Also modify to EOS to standardize modules. It makes vimdiff a lot less angry * Move IOS exception handling into Cli * Move IOS-XR exception handling into Cli * Move JUNOS exception handling into Cli * Move NXOS exception handling into Cli And reorganize to make it match the other modules * Move OpenSwitch exception handling into Cli More speculative restructuring here
* Allow timeout to be configurable (#14973)Patrick Ogenstad2016-04-141-3/+4
|
* Update IOS, IOSXR, JUNOS, & OpenSwitch for environment vars.Nathaniel Case2016-04-121-8/+9
|
* Fix network modules for ziploader changesNathaniel Case2016-04-061-4/+4
|
* ZiploaderToshio Kuratomi2016-04-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ziploader proof of concept (jimi-c) * Cleanups to proof of concept ziploader branch: * python3 compatible base64 encoding * zipfile compression (still need to enable toggling this off for systems without zlib support in python) * Allow non-wildcard imports (still need to make this recusrsive so that we can have module_utils code that imports other module_utils code.) * Better tracebacks: module filename is kept and module_utils directory is kept so that tracebacks show the real filenames that the errors appear in. * Make sure we import modules that are used into the module_utils files that they are used in. * Set ansible version in a more pythonic way for ziploader than we were doing in module replacer * Make it possible to set the module compression as an inventory var This may be necessary on systems where python has been compiled without zlib compression. * Refactoring of module_common code: * module replacer only replaces values that make sense for that type of file (example: don't attempt to replace python imports if we're in a powershell module). * Implement configurable shebang support for ziploader wrapper * Implement client-side constants (for SELINUX_SPECIAL_FS and SYSLOG) via environment variable. * Remove strip_comments param as we're never going to use it (ruins line numbering) * Don't repeat ourselves about detecting REPLACER * Add an easy way to debug * Port test-module to the ziploader-aware modify_module() * strip comments and blank lines from the wrapper so we send less over the wire. * Comments cleanup * Remember to output write the module line itself in powershell modules * for line in lines strips the newlines so we have to add them back in
* enhancement to ios shared module connectionPeter Sprygada2016-04-041-3/+10
| | | | | | this enhancement will cause the module to connect to the remote ios device the first time a command wants to run instead of building a connection immediately
* adds additional details in exception handling to ios shared modulePeter Sprygada2016-04-041-0/+2
|
* feature to localize prompt search logic for ios shared modulePeter Sprygada2016-03-291-4/+20
| | | | | | Prompt search logic is now localized to the ios shared module instead of using the common regexps in the shell module. This resolves a number of problems with ios modules functioning properly
* feature in ios to tell shell not to kickstartPeter Sprygada2016-03-131-1/+1
| | | | | This commit is necessary to tell shell not to kickstart the cli session as it causes problems in IOS to recognize the prompt.
* minor bugfix that will catch connection errors in iosPeter Sprygada2016-02-171-1/+2
| | | | | | This commit fixes a situation where connection errors would be caught but no useful information display. The connection error is now caught and emitted in a call to fail_json
* Move Conditional class to netcfg. Added error handling for connect and ↵chouseknecht2016-02-111-2/+13
| | | | | | execute methods. Fix comments
* adds provider argument to ios shared modulePeter Sprygada2016-01-191-12/+13
| | | | | | | New argument `provider` added to the ios shared module that provides the ability to pass all of the common ios arguments as a dict. This commit includes some minor bugfixes and refactoring of names. It also includes udpates to the ios documentation fragment for the new argument
* bugfix in ios shared module for including defaultsPeter Sprygada2016-01-111-1/+1
|
* updates the ios shared module with new shellPeter Sprygada2016-01-081-130/+83
| | | | | | This update refactor the ios shared module to use the new shell shared library instead of issh and cli. It also adds the ios documentation fragment to be used when building ios based modules.
* bugfix for ios.py shared module argument creationPeter Sprygada2015-12-031-18/+3
| | | | | | This patch fixes a bug in module_utils/ios.py where the the wrong shared module arguments are being generated. This bug prevented the shared module from operating correctly. This patch should be generally applied.
* initial add of the ios shared modulePeter Sprygada2015-12-011-0/+195
This adds shared module support for building modules that connect to Cisco IOS devices. It builds on the module_utils/ssh.py shared module.