Commit Graph

25 Commits (4c4a6de9d65eeede3ee8e4d2f75c40a482db1d1f)

Author SHA1 Message Date
Peter Sprygada 11efe33730 refactor the eos_command module to use the CommandRunner
* This adds support the CommandRunner to handle executing commands on
the remote device.
* It also changes the waitfor argument to wait_for to remain compatable
with other modules and adds an alias for waitfor.
* Restricts commands to show commands only when check mode is specified.
* add version_added to wait_for doc string
8 years ago
Michael Scherer cc99fe24fc Convert the network subfolder to py3/py2.4 syntax (#3690) 8 years ago
Scott Butler 7d09339d31 Fixed typos 9 years ago
Peter Sprygada 6b8a92045f handles config replace properly in eos_template
fixes 3366
9 years ago
Peter Sprygada ad519c2f5c refactors eos_template to remove diff functions
replaces functions with netcfg shared library for handling configuration
diffs
9 years ago
Peter Sprygada 5d0ee49067 refactors eos_config to remove config diff functions
replaces with netcfg shared library for handling configuration diffs
9 years ago
James Cammarata d7422c02ad Merge pull request #3010 from grybak-arista/exit-filter
Filter exit commands when no other commands are included
9 years ago
Peter Sprygada d4e687f894 doc string fixes for eos_config
This updates eos_config with some fixes to the documentation string
9 years ago
Peter Sprygada 416dd73b09 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.
9 years ago
Peter Sprygada cf3287b312 minor function clean ups in eos_command
This commit cleans up a couple of functions and removes the json
import to use the json methods from AnsibleModule
9 years ago
Peter Sprygada 11056c8ed2 bugfix for handling match=strict in eos_config
Resolves an issue where match=strict would act like match=exact when
evaluating the configuration
9 years ago
Matt Martz c7845456a6 Various simple linting type cleanups on modules 9 years ago
chouseknecht 573ba42b03 Moved Conditional class to netcfg. 9 years ago
Gary Rybak 373961da04 Add filter to eos_template to remove configuration mode command
followed immediately by an exit command indented one level.
9 years ago
Peter Sprygada e6460906fd update eos_config doc string and return values
This change update the return values from eos_config to be consistent with
all network config modules.  This will now return updates and responses
from the module
9 years ago
Peter Sprygada d66a0cbe3f 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
9 years ago
Peter Sprygada 624d1e38b8 update eos_command doc strings and return values
This change updates the returns values from eos_command to be consistent
with network modules. It now returns stdout, stdout_lines and failed_conditionals
9 years ago
chouseknecht 4e614d36bc Adding eos_eapi module. 9 years ago
Peter Sprygada 6c486cd341 bug fix for eos_config module
This addresses a bug in the eos_config module that would prevent it
from running properly.  The module should now properly process the config
and the candidate
9 years ago
Peter Sprygada d64ae18307 bug fix on parameter in eos_config
The eos_config module has a bug where its trying to pass an argument
that doesn't exist.  This fixes that problem, removing the offending
keywork argment
9 years ago
Peter Sprygada 0df3a0e501 Merge pull request #2941 from privateip/module_eos_template
initial add of new module eos_template
9 years ago
Peter Sprygada 9ee5dc12b6 Merge pull request #2872 from privateip/module_eos_command
initial add of eos_command module
9 years ago
Peter Sprygada b7c2878136 initial add of eos_config module
This adds a new module for pushing configuraitons to eos devices in a
reliable and repeatable fashion.  It includes support for templating
configurations and backing up the current config prior to pushing out
changes.  This module works over either CLI or EAPI.

This PR has a dependency on ansible/ansible PR #14009 being merged
9 years ago
Peter Sprygada d29db07fab 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
9 years ago
Peter Sprygada 332c6a56c5 initial add of eos_command module
This adds a new module eos_command to network/eos.  The eos_command module
is used for sending arbitrary commands to Arista EOS devices.  It includes
arguments that allow the module to wait for specific values before the
module returns control to the playbook or fails
9 years ago