Ricardo Carrillo Cruz
e70bc06ea1
Refactor iosxr_command to make use of network_connection plugin ( #20772 )
2017-01-30 17:52:19 +01:00
Ricardo Carrillo Cruz
a8cfe4a5d7
Refactor iosxr_config to make use of network_connection plugin
2017-01-24 23:24:06 +01:00
Ricardo Carrillo Cruz
0eb4813c8a
Add start/end/delta docstring and remove responses for iosxr_template ( #20394 )
2017-01-19 10:21:02 +00:00
Ricardo Carrillo Cruz
0e78aab533
Fix copyright and author lines for iosxr lib and iosxr_template
2017-01-18 14:15:28 +01:00
Ricardo Carrillo Cruz
ae630fff56
Refactor iosxr_template to network_cli plugin
2017-01-17 20:01:56 +01:00
Peter Sprygada
4cdb266dac
adds iosxr_system declarative module ( #20134 )
...
* adds new module iosxr_system
* adds unit test cases for module
2017-01-11 17:17:37 -05:00
John R Barker
40ecc3188f
Use M() to link to the replacement module. ( #19976 )
2017-01-06 16:21:39 +00:00
Toshio Kuratomi
7319104552
Refreshed metadata for core modules
2016-12-08 11:25:35 -05:00
John R Barker
25b6492d37
Bulk spelling improvement to modules-core ( #5225 )
...
* Correct spelling mistakes
* Correct more spelling issues
* merge conflict
* Revert typo in parms
2016-12-08 11:25:20 -05:00
Bill Nottingham
765269e547
Fix deprecation notices. ( #5180 )
2016-12-08 11:25:19 -05:00
Peter Sprygada
56120433c9
checks commit comment to make sure it doesn't exceed 60 characters ( #5155 )
...
The comment argument can be at most 60 characters per the IOS XR command
line. If a comment is > 60 characters, the module will now gracefully error
and return a well formed message.
fixes 5146
2016-12-08 11:25:18 -05:00
John R Barker
177dcadbc0
deprecated _template network modules: Rename in modules-core ( #5072 )
2016-12-08 11:25:14 -05:00
Nathaniel Case
aa82f48dc8
Network module code cleanup ( #5061 )
...
* Fix imports in junos_template
* Python 3 compatibility in eos_command
* Python 3 compatibility for ios_command
* Clean up issues with ios_facts
* Python 3 compatibility for ios_facts
* Import shuffle in ios_template
* Python 3 compatibility for iosxr_command
* Clean up iosxr_facts.py
* Python 3 compatibility for iosxr_facts
* Python 3 compatibility for junos_command
* Python 3 compatibility for ops_command
* Cleanup issues with ops_facts
* Python 3 compatibility for ops_facts
* Cleanup issues with ops_template
* Python 3 compatibility for vyos_command
* Cleanup issues with vyos_facts
* Python 3 compatibility for vyos_facts
2016-12-08 11:25:14 -05:00
John Barker
264bb374b9
RETURNS doesn't support markup, so remove it
2016-12-08 11:25:05 -05:00
John Barker
42d5d7b21b
Docs improvements to _config
2016-12-08 11:25:05 -05:00
Peter Sprygada
8444b1ed8f
roll up of updates to iosxr_config module
...
* 'before' and 'after' arguments now only apply to 'lines'
* update doc strings
* remove update argument
* clean up warnings
2016-12-08 11:25:03 -05:00
Andrew Gaffney
bac0c4595c
Fix missing colons in network module examples ( #4778 )
2016-12-08 11:25:03 -05:00
Peter Sprygada
290a4b5fac
adds path kwarg when difference() is called from iosxr_config
...
Adds the path kwarg to handle use cases with exact and strict matching
2016-12-08 11:25:03 -05:00
Peter Sprygada
db49e1e436
fixes issue where the configobjs are not deserialized to a list
...
When the configuration is compared and the results deserialized, the
dumps() function returns a string. This cohereces the return to a list
in case before and/or after needs to be applied
fixes 4707
2016-12-08 11:25:01 -05:00
Peter Sprygada
7eb550aa53
update iosxr_template to use network shared modules
...
This updates the iosxr_template module to make it work with the new
shared network modules introduced in Ansible 2.2
Tested on IOSXR 6.0.0
2016-12-08 11:24:53 -05:00
Peter Sprygada
0da190abbd
add new iosxr_facts module for fact collection from XR devices
...
* adds support for std network facts
* adds support for default facts subset
* adds support for config facts subset
* adds support for interface facts subset
* adds support for hardware facts subset
Tested on IOS-XR 6.0.0
2016-12-08 11:24:53 -05:00
Peter Sprygada
d138b94c70
update iosxr_config with new arguments
...
* 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, replace or check
* add backup argument to backup current running config to control host
* add comment argument to provide comment to commit
* deprecated force argument, use match=none instead
2016-12-08 11:24:53 -05:00
Peter Sprygada
003b6da05a
add new functionality to iosxr_command module
...
* 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> }.
2016-12-08 11:24:53 -05:00
John R Barker
1357e7e83a
ios & iosxr Documentation improvements ( #4321 )
2016-12-08 11:24:48 -05:00
Michael Scherer
c0217e14a7
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
2016-12-08 11:24:29 -05:00
Johannes Meixner
af634ff5c7
network/*/*_config.py: Correct typo.
...
- Replace syntanx with syntax in all things network.
2016-12-08 11:24:27 -05:00
Patrick Ogenstad
d4d86b4bc6
Fix documentation example, missing ")"
2016-12-08 11:24:18 -05:00
John Barker
d531eb146d
Replace BOOLEANS with true/false
2016-12-08 11:24:17 -05:00
Peter Sprygada
8210ede9b4
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-12-08 11:24:16 -05:00
Peter Sprygada
bba38d2cf8
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-12-08 11:24:16 -05:00
Peter Sprygada
c2c8d51ba2
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-12-08 11:24:15 -05:00
Peter Sprygada
7cd3793128
bugfix for handling match=strict in iosxr_config
...
Resolves an issue where match=strict would act like match=exact when
evaluating the configuration
2016-12-08 11:24:11 -05:00
Peter Sprygada
06e3899860
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-12-08 11:24:06 -05:00
Peter Sprygada
5725472cc6
initial add of iosxr_template module
...
This adds a new module, iosxr_template, that can be used to template
configurations for IOS XR devices. Templates are then loaded into the
target device over cli
2016-12-08 11:24:06 -05:00
Peter Sprygada
671184adc4
initial add of iosxr_command module
...
This adds a new module, iosxr_command, that can be used to issue
commands to devices running IOS XR. Commands are run on the
target device over cli
2016-12-08 11:24:06 -05:00