Commit Graph

52 Commits (cac4e680907f4adde0ad817970bc16fe1db87b5e)

Author SHA1 Message Date
Peter Sprygada c716744f3c minor bug fix to pass path to difference() in ios_config
The ios_config module needs to pass the path kwarg to difference when
specifying match=exact or strict.
8 years ago
Peter Sprygada 81aa3a760c Merge pull request #4730 from privateip/ios_template
fix bug in ios_template when include_defaults is set to true
8 years ago
Peter Sprygada c3c964475c fix bug in ios_template when include_defaults is set to true
Module was ignoring  include_defaults argument.  This fixes the issue
such that the correct configuration is returned
8 years ago
Peter Sprygada 05887b8f86 adds path kwarg when performing config diff checks in ios_config 8 years ago
Peter Sprygada e5419a2738 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
8 years ago
Peter Sprygada eae87e21d9 Merge pull request #4698 from privateip/ios_config
removes state argument from ios_config
8 years ago
Peter Sprygada e0f7912e37 removes state argument from ios_config
The state argument should not be in ios_config.  This change removes the
state argument
8 years ago
Peter Sprygada 4c8bbae415 bugfix that adds missing itertools import to ios_facts
fixes #4647
8 years ago
Peter Sprygada a6ffe2e7be removes output keyword from command in ios_command
IOS devices only support a single command output which is structured
text.  This removes the ability to specify the command output format
when providing complex arguments to the commands
8 years ago
Peter Sprygada 9acf4ea417 update ios_template module using refactored network shared modules
This updates the ios_template module to work with the network shared
modules introduced in Ansible 2.2

Tested in IOS 15.6(1)T
8 years ago
Peter Sprygada e3b7bf0bf9 update RETURNS doc string in ios_facts
updates the doc string for consistency and completeness
8 years ago
Peter Sprygada c23f57c0ef Merge pull request #4482 from privateip/ios_config
merge functions from ios into ios_config
8 years ago
Peter Sprygada 9e241129fe Merge pull request #4481 from privateip/ios_facts
fixes issue with duplicated commands in CommandRunner
8 years ago
Peter Sprygada 4d79b7fa00 fixes issue with duplicated commands in CommandRunner
The CommandRunner will not allow duplicate commands to be added to the
command stack.  This fix will now catch the exception and continue if
a duplicate command is attempting to be added to the runner instance.
8 years ago
Peter Sprygada 2961087f26 added new functionality to ios_command
* 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.
8 years ago
Peter Sprygada f6dab64bc5 merge functions from ios into ios_config
* merge changes from ios shared module functions into ios_config.
* 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 or check
* add backup argument to backup current running config to control host
* add defaults argument to control collection of config with or withoutdefaults
* 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
8 years ago
Peter Sprygada 0bb0c1b2d8 Merge pull request #4323 from Qalthos/ios_config_bugfix
Fix ios_config broken logic
8 years ago
Alvaro Aleman 12b579f92d Make ios_command example working 8 years ago
John R Barker d05ed8e2d8 ios & iosxr Documentation improvements (#4321) 8 years ago
Nathaniel Case 8bb4b9818c Fix ios_config broken logic 8 years ago
Rob Phoenix aedf21b285 various typo corrections to ios network modules 8 years ago
Peter Sprygada fb3916f002 adds update_config argument to ios_config
New argument controls whether or not configuration is applied to the
remote device.
8 years ago
Peter Sprygada 1240529613 Merge pull request #4180 from privateip/ios_command
removes unneeded check_args function from ios_command
8 years ago
Peter Sprygada 6a8750fe4b Merge pull request #4181 from privateip/ios_config
bug fix in ios_config module for handling config contents
8 years ago
Peter Sprygada 601bb9fad3 bug fix in ios_config module for handling config contents
Config contents when passed via argument were returning a string but
the module expects an instance of NetworkConfig.  This fixes that
problem.
8 years ago
Peter Sprygada daaafb68ab removes unneeded check_args function from ios_command
The module would raise a KeyError trying to find the save_config key
which is not present in the argument_spec.  This was caused by the
check_args() function.  Since the ios shared argument spec isn't used
the check_args function is not needed and has been removed.
8 years ago
Peter Sprygada d8d69904a7 fixup ios_template module to use NetworkModule
This removes the get_module() factory function and directly creates
an instance of NetworkModule.  This commit includes some minor clean
up to transition to the ios shared module for 2.2
8 years ago
Peter Sprygada 359f1747be Merge pull request #4153 from privateip/ios_command
fix up ios_command to use NetworkModule
8 years ago
Peter Sprygada ebc9f092ad fix up ios_command to use NetworkModule
* using check mode will now block all commands except show commands
* module will no longer allow config mode commands
* check args for unused values and issue warning
8 years ago
Peter Sprygada 5f08277eb4 refactor ios_config for network module
This refactors the ios_config module to use the network module added
in 2.2 to simplify common network functions

new features

* add src, dest arguments for working with config
* results now return flag if the config was saved or not
* adds append argument for updating the dest file (when dest is used)
8 years ago
Peter Sprygada b2202c6da8 update ios_facts module to use NetworkModule
minor update to ios_facts to remove get_module() in favor of NetworkModule
8 years ago
Peter Sprygada 25e98e869f Merge pull request #4124 from privateip/ios_facts
initial add of ios_facts module
8 years ago
Peter Sprygada 4f8f8f1998 initial add of ios_facts module
This adds the new module ios_facts for collect fact information from
ios devices
8 years ago
Peter Sprygada 2be917851d refactor ios_command to use CommandRunner class
* fixes running commands in check mode.  now only show commands are allowd
* renamed waitfor to wait_for with alias to waitfor for consistency
8 years ago
Michael Scherer cc99fe24fc Convert the network subfolder to py3/py2.4 syntax (#3690) 8 years ago
Johannes Meixner 24549ee80a network/*/*_config.py: Correct typo.
- Replace syntanx with syntax in all things network.
8 years ago
Brian Coca c64b7a71fb removed usless default doc 9 years ago
Justin Kennedy 7a2b00b625 Updating examples to include required fields (#3242)
Updated examples to include required fields (host, username).  Also updated src option to be listed as required.
9 years ago
Patrick Ogenstad 5409ed1b28 Fix documentation example, missing ")" 9 years ago
John Barker 531eed80b3 Replace BOOLEANS with true/false 9 years ago
Peter Sprygada c500b2ff99 refactors the ios_template module to use netcfg diff
removes the functions for performing configuration diffs to use the
netcfg shared lib
9 years ago
Peter Sprygada df32f64898 refactor ios_config to use netcfg diff shared lib
Move the configuration diff code from the module to the shared lib
9 years ago
jrk07 3cc277bc08 Doc Update: ios_template.py title and example
ios_template.py was named ios_config when viewing docs.  The examples also had net_config still.  Updated those here.
9 years ago
Peter Sprygada e3ca92e97d bugfix for ios_config module
This commit address a bug in the ios_config module when using the
match: strict argument.  When the argument is used, the module will
compare the configuration block same as match: exact which is not the
intended behavior.  This commit updates the behavior to propertly handle
the strict argument.
9 years ago
moyashiki e851e91b49 Fix ios_command fix
This is not valid YAML commands. So fix it.
9 years ago
Peter Sprygada 567e09c933 bugfix for missing function name in ios_command
This provides a minor bugfix for a missing function name in the ios_command
network module
9 years ago
Peter Sprygada b7114cc783 update ios_command module return values
This minor change updates the return values and doc string for the
ios_command module to be consistent with other network modules
9 years ago
chouseknecht a4f67a4ef2 Add ios_commnand module. 9 years ago
Peter Sprygada e010a7b240 update ios_template doc strings and return values
Sets the return values from ios_template to be consistent with the rest
of the network modules.  Return values are now updates and responses
9 years ago
Peter Sprygada ca2ae67794 update ios_config doc strings and return values
This changes the return values to be consistent across all network
config modules. The return values are now updates and responses
9 years ago