Commit Graph

26 Commits (7808f42affa91ab88cc3c100d6f95a9b1204cf90)

Author SHA1 Message Date
John R Barker a829ca29ee Force is not a 2.2 feature
9b5e6bbfa1 incorrectly chopped some text around
8 years ago
Peter Sprygada e927fa73d5 Merge pull request #4798 from gundalow/docs_backup
Document `backup` option in eos_config and nxos_config
8 years ago
Peter Sprygada a391dd952e Merge pull request #4830 from privateip/ios_config
ios_config: rename the argument default to defaults
8 years ago
John Barker f1ad1d0d64 RETURNS doesn't support markup, so remove it 8 years ago
Peter Sprygada 9794087aa7 rename the argument default to defaults
The argument_spec incorrectly had the argument default and it should have
been defaults.  This corrects the problem.
8 years ago
John Barker 9c42d72375 Docs improvements to _config 8 years ago
John Barker b76b3de28e Document `backup` options
To make future diffing easier, use consistent ordering
8 years ago
Peter Sprygada 9b5e6bbfa1 roll up of updates to ios_config module
* 'before' and 'after' are now only applied to 'lines'
* remove update argument
* update doc strings
* add path argument when performing config difference
8 years ago
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 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 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 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
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 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 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
Johannes Meixner 24549ee80a network/*/*_config.py: Correct typo.
- Replace syntanx with syntax in all things network.
9 years ago
Patrick Ogenstad 5409ed1b28 Fix documentation example, missing ")" 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
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
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 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