summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils/iosxr.py
Commit message (Collapse)AuthorAgeFilesLines
* Add iosxr changes for Python3 (#24605)Ganesh Nalawade2017-05-171-9/+12
| | | | | | | | | | * Add iosxr changes for Python3 Make `execute_command` arguments and its return value complaint to PY3 changes made in PR #24431 * Fix CI issue
* Redo #23418 (#23425)Nathaniel Case2017-04-071-1/+6
| | | | | | | | * Check for provider values inside check_args of respective network code * Partial revert of b9ee5aa The no_log change is okay, but take out the action result munging
* Fixes #23388 Network provider masks too much (#23418)Chris Alfonso2017-04-071-1/+1
| | | | | | * Fixes #23388 Network provider masks too much * Fix trailing whitespace
* fix iosxr commands to encode json (#23346)Peter Sprygada2017-04-061-0/+1
| | | | the command dict in the iosxr module_utils wasn't encoding the request to json. this patch will fix that problem
* Fall-back to show configuration on old IOSXR devices (#22900)Ricardo Carrillo Cruz2017-03-291-1/+8
| | | | | | | In old IOSXR versions, 'show commit changes diff' does not work. Fall-back to 'show configuration' if that command fails so execution can move forward. Fixes #22235
* Idempotency fix for iosxr_config (#22365)Ricardo Carrillo Cruz2017-03-071-3/+15
| | | | | | Multiple fixes to address idempotency issues, along with refactor of module_utils iosxr to look like ios, for code consistency. Fixes #22315
* adds no_log to provider arg in iosxr shared lib (#21617)Peter Sprygada2017-02-181-1/+1
|
* Removes default kwarg in iosxr_argument_spec for timeout (#21569)Ricardo Carrillo Cruz2017-02-171-1/+1
|
* updates iosxr modules to support socket (#21231)Peter Sprygada2017-02-151-12/+29
| | | | | | | | * updates all iosxr modules to support persistent socket * adds iosxr action plugin to connect to device * adds exec_command() to iosxr shared module * fixes iosxr_config and iosxr_template local action * update all unit test cases * adds base test module for iosxr module testing
* Refactor iosxr_config to make use of network_connection pluginRicardo Carrillo Cruz2017-01-241-2/+5
|
* Fix copyright and author lines for iosxr lib and iosxr_templateRicardo Carrillo Cruz2017-01-181-0/+1
|
* refactors iosxr shared module to use network_cli (#20132)Peter Sprygada2017-01-111-84/+57
| | | | | | This refactors the iosxr shared module to make use of the network_cli connection plugin and removes the dependency on the shared shell module. This change will break current modules until the modules are updated.
* clean up iosxr shared modulePeter Sprygada2016-09-111-2/+3
| | | | fixes up method signatures in iosxr shared module removing unneeded **kwargs
* Network module cleanup (#17334)Nathaniel Case2016-09-061-13/+5
| | | | | | | | | | | | * Clean up EOS, IOS, IOS-XR, Junos, NX-OS, and OpenSwitch * Cleanup net* files * Re-add NetworkModule import to network module_utils files This will trick modules into importing code from module_utils code, thus including it in the final Ansiballz zipfile. * Give asa a look over, too
* fixes iosxr configure method to commit the changesPeter Sprygada2016-08-261-0/+3
| | | | | The iosxr configure method did not send the commit command to active the changes after pushed to the remote device. This change address that problem
* disable prompt timestamps upon successful connection to iosxrPeter Sprygada2016-08-261-1/+2
|
* add commit keyword arg to load_config methodPeter Sprygada2016-08-261-9/+12
| | | | | this adds a new keyword arg to the load_config method that will control whether or not a loaded configuration is committed on the device
* updates iosxr shared modulePeter Sprygada2016-08-241-23/+48
| | | | | | This completes the refactor of the iosxr 2.2 shared module. It also includes the iosxr_config action plugin to be implemented by the iosxr_config module for 2.2
* Relicense low-hanging fruit to BSD (#17025)Nathaniel Case2016-08-101-13/+22
|
* 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.