summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils/iosxr.py
Commit message (Collapse)AuthorAgeFilesLines
* Net mod ios (#16426)Nathaniel Case2016-07-071-127/+43
| | | | | | | | | | | | | | * 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
* Clarify exception handling in net modules (#15507)Nathaniel Case2016-04-251-20/+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
* Update IOS, IOSXR, JUNOS, & OpenSwitch for environment vars.Nathaniel Case2016-04-121-6/+7
|
* 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 iosxr shared module to lazy connect to devicePeter Sprygada2016-04-041-2/+10
| | | | | this update will only connect to the remote device when the first request is made to run a command instead of building the connection immediately
* feature to localize prompt search login to iosxr shared modulePeter Sprygada2016-04-041-3/+21
| | | | | this localizes the cli prompt search logic to the iosxr shared module instead of using the common regexp list in shell.py
* minor bugfix that will catch connection errors in iosxrPeter Sprygada2016-02-171-1/+6
| | | | | | 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
* add provider to iosxr shared modulePeter Sprygada2016-01-191-13/+14
| | | | | | | This commit adds a new argument `provider` to the iosxr shared module that allows common connection parameters to be passed as a dict object. The constraints on the args still applies. This commit also updates the iosxr doc fragment.
* adds new iosxr shared module for developing modules that work with IOS XR ↵Peter Sprygada2016-01-081-0/+121
devices This commit adds a new shared module for working with Cisco IOS XR devices over CLI (SSH). It also provides a documentation fragement for the commmon arguments provided by the iosxr module.