Commit Graph

32 Commits (0358dee0950645ccedd9f6dd88393502acffb0a0)

Author SHA1 Message Date
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
Peter Sprygada 23f1d20a5c initial add of ios_template module
This adds a new module for working with IOS devices and building configurations
using templates.
9 years ago
Peter Sprygada d05ceb9e28 initial add of ios_config module
This adds a new module ios_config that can be used for configuring
IOS devices.
9 years ago