Commit graph

44 commits

Author SHA1 Message Date
Peter Sprygada
cbcb90e112 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-09-12 16:29:51 -04:00
Peter Sprygada
9df9a1dbd4 roll up of updates to eos_config module
* removes update argument
* adds `config` option to replace argument
* moves session management into shared module
* cleans up doc strings
* `before` and `after` args now only apply to lines
2016-09-11 15:31:53 -04:00
Andrew Gaffney
0c05f0dfa4 Fix missing colons in network module examples (#4778) 2016-09-10 14:46:30 +01:00
Peter Sprygada
db18577df1 Merge pull request #4724 from privateip/eos_config
roll up of minor fixes in eos_config module
2016-09-07 14:56:21 -04:00
Peter Sprygada
87dc24b19e roll up of minor fixes in eos_config module
* fixes save argument to be type bool
* now properly sets the changed returned flag based on diff
* updates docstring RETURNS to add backup_path
* removes unneeded state argument

tested on EOS 4.15.4F
2016-09-07 14:24:08 -04:00
Peter Sprygada
e464599632 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-09-06 22:51:40 -04:00
John R Barker
ceddebaf28 Consistent naming of Arista EOS device (#4616) 2016-09-01 12:10:32 +01:00
Peter Sprygada
6f9ab60f81 Merge pull request #4615 from ansible/gundalow-patch-2
Consistent naming of Arista EOS device
2016-08-31 14:16:28 -04:00
Peter Sprygada
c215398e2f update eos_eapi module with new enhancements
* add support for vrf configurations
* add support for configing the qos value for eapi
* add config argument to specify the device running-config

Tested on EOS 4.15.4F
2016-08-31 09:37:23 -04:00
John R Barker
ec1c490888 Consistent naming of Arista EOS device 2016-08-31 14:31:16 +01:00
Peter Sprygada
12122952db Merge pull request #3950 from grybak-arista/eos_exit_fix
Move call to filter_exit out of command execution block
2016-08-29 10:43:21 -04:00
Peter Sprygada
074273dbb4 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-08-26 16:37:59 -04:00
Peter Sprygada
ef48b9188f add new eos_facts module for fact collect of EOS nodes
* 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 EOS 4.15.4F
2016-08-26 09:12:52 -04:00
Peter Sprygada
5dad16e914 Merge pull request #4501 from privateip/eos_command
add new functionality to eos_command module
2016-08-23 15:21:09 -04:00
Peter Sprygada
356888a3a3 add new functionality to eos_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> }.  Command and output are required arguments. Output
accepts valid values text and json.
2016-08-23 09:23:00 -04:00
Peter Sprygada
577d34d163 update eos_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 defaults argument to control collection of config with or without defaults
* add save argument to save current running config to startup config
* add state argument to control state of config file
* deprecated force argument, use match=none instead
2016-08-22 20:18:47 -04:00
John Barker
79c55534fc General EOS documentation improvements
Typos, formatting, choices.
2016-08-02 21:46:08 +01:00
John R Barker
280522914c State runnng v running
Fix typo
2016-08-02 18:20:13 +01:00
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
2016-07-06 21:28:48 -04:00
Gary Rybak
dc21c211e3 Move call to filter_exit out of command execution block
to prevent setting 'changed' on a command list that is
completely filtered (empty).
2016-06-14 10:09:23 -06:00
Michael Scherer
cc99fe24fc Convert the network subfolder to py3/py2.4 syntax (#3690) 2016-05-18 09:08:30 -07:00
Scott Butler
7d09339d31 Fixed typos 2016-05-06 14:34:31 -07:00
Peter Sprygada
6b8a92045f handles config replace properly in eos_template
fixes 3366
2016-04-05 22:58:04 -04:00
Peter Sprygada
ad519c2f5c refactors eos_template to remove diff functions
replaces functions with netcfg shared library for handling configuration
diffs
2016-04-04 07:21:00 -04:00
Peter Sprygada
5d0ee49067 refactors eos_config to remove config diff functions
replaces with netcfg shared library for handling configuration diffs
2016-04-04 07:20:48 -04:00
James Cammarata
d7422c02ad Merge pull request #3010 from grybak-arista/exit-filter
Filter exit commands when no other commands are included
2016-03-17 13:11:30 -04:00
Peter Sprygada
d4e687f894 doc string fixes for eos_config
This updates eos_config with some fixes to the documentation string
2016-03-11 22:11:20 -05:00
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.
2016-03-11 22:11:12 -05:00
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
2016-03-11 22:10:59 -05:00
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
2016-03-10 13:33:48 -05:00
Matt Martz
c7845456a6 Various simple linting type cleanups on modules 2016-02-16 15:58:44 -06:00
chouseknecht
573ba42b03 Moved Conditional class to netcfg. 2016-02-11 01:17:52 -05:00
Gary Rybak
373961da04 Add filter to eos_template to remove configuration mode command
followed immediately by an exit command indented one level.
2016-02-10 17:21:24 -07:00
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
2016-02-09 15:10:05 -05:00
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
2016-02-09 15:07:55 -05:00
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
2016-02-09 15:07:06 -05:00
chouseknecht
4e614d36bc Adding eos_eapi module. 2016-02-07 12:01:26 -05:00
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
2016-02-06 09:09:29 -05:00
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
2016-02-06 07:37:46 -05:00
Peter Sprygada
0df3a0e501 Merge pull request #2941 from privateip/module_eos_template
initial add of new module eos_template
2016-02-06 07:02:14 -05:00
Peter Sprygada
9ee5dc12b6 Merge pull request #2872 from privateip/module_eos_command
initial add of eos_command module
2016-02-06 07:01:51 -05:00
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
2016-02-06 06:55:27 -05:00
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
2016-02-01 22:21:40 -05:00
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
2016-02-01 21:19:52 -05:00