Peter Sprygada
3a7301bb3b
fixes error when calling load_config() with session keyword
...
The session keyword is no longer needed or supported in the load_config()
method for eos. This fixes an issue in eos_template where the session
keyword was still being sent.
2016-12-08 11:25:05 -05:00
Peter Sprygada
bfdc5098cb
minor bug fixes in eos_template
...
* fixes issue where configuration was not being loaded (#4704 )
* fixes issue where defaults were not included when argument was set to True
tested on EOS 4.15.4F
2016-12-08 11:25:02 -05:00
Peter Sprygada
4fd4ff8d5c
update eos_template for network shared module
...
This updates the eos_template module to work with the changes introduced
in the network shared module in Ansible 2.2
Tested on EOS 4.15.4F
2016-12-08 11:24:54 -05:00
Gary Rybak
e2d55d86e4
Move call to filter_exit out of command execution block to prevent setting 'changed' on a command list that is completely filtered (empty).
2016-12-08 11:24:52 -05:00
John Barker
2b82389705
General EOS documentation improvements
...
Typos, formatting, choices.
2016-12-08 11:24:47 -05:00
Peter Sprygada
ef8b59f430
handles config replace properly in eos_template
...
fixes 3366
2016-12-08 11:24:16 -05:00
Peter Sprygada
a4bb4ee146
refactors eos_template to remove diff functions
...
replaces functions with netcfg shared library for handling configuration
diffs
2016-12-08 11:24:15 -05:00
Peter Sprygada
ed2d46bc9e
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-12-08 11:24:12 -05:00
Gary Rybak
5ff79d0596
Add filter to eos_template to remove configuration mode command followed immediately by an exit command indented one level.
2016-12-08 11:24:09 -05:00
Peter Sprygada
eb5f9c216b
update eos_template doc string and return values
...
This updates the return values form eos_template to be consistent
across all template modules. This change now returns updates and
respones
2016-12-08 11:24:04 -05:00
Peter Sprygada
9a90721720
initial add of new module eos_template
...
The eos_template module works by allowing configurations to be pushed
to Arista EOS devices that can be templated by the Ansible Jinja2
template engine
2016-12-08 11:24:02 -05:00