Trishna Guha
343b83041e
nxos_feature fix and unit test ( #25200 )
...
* nxos_feature fix
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* nxos_feature unit test
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* remove from pep8/legacy-file
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-06-01 08:58:35 +05:30
Trishna Guha
fb87680046
fix state present nxos_evpn_vni ( #25212 )
...
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-06-01 08:57:17 +05:30
Nathaniel Case
53837c2ab0
Assorted nxos_bgp_* fixes ( #25080 )
...
* Simplify apply_key_map
* Fix nxapi
* Clean up get_value
* Fix missing non-values
* Add test for existing bgp_af case
* Fix small issues with bgp_neighbor_af
2017-05-30 14:11:15 -04:00
Trishna Guha
31c59ad5f9
nxos_portchannel fix and unit test ( #25019 )
...
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-05-30 21:22:24 +05:30
Nathaniel Case
8985f7c930
nxos_static_route updates ( #24992 )
...
* Add static_route tests
* Add VRF tests
2017-05-25 12:19:04 -04:00
Trishna Guha
307fd1b3dc
nxos_vlan fix ( #24973 )
2017-05-25 09:45:43 +05:30
Nathaniel Case
dd4a79d7d3
Clean up nxos_bgp_neighbor_af ( #24890 )
...
* Fix pep8 in bgp_neighbor_af
* Remove WARNINGS
* Rewrite command detection
* Add bgp_neighbor_af test
* Finally kill invoke
2017-05-23 12:43:55 -04:00
Trishna Guha
4066b03a4c
nxos_evpn_global refactor ( #24919 )
...
* nxos_evpn_global refactor
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* ansibot told me to do this
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-05-23 14:54:54 +05:30
Ricardo Carrillo Cruz
b12beca3ed
Refactos nxos_ip_interface module ( #24885 )
2017-05-22 19:48:59 +02:00
Trishna Guha
1e5a0982b9
Fix nxos_hsrp and add unit test ( #24770 )
...
* nxos_hsrp fix
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* unit test nxos_hsrp
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* ansibot told me to do this
* revert apply_key_map and simplify method
2017-05-19 10:40:42 -06:00
Trishna Guha
4782a4e62f
Make host required field and minor refactor ( #24534 )
...
* Make host required field and minor refactor
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* ansibot pep8 legacy file
* example doc update
2017-05-19 10:37:01 -06:00
Trishna Guha
21e28a431b
Remove unused method from nxos_ospf ( #24820 )
2017-05-19 10:57:16 +05:30
Trishna Guha
998305a493
nxos_ospf_vrf fix and unittest ( #24495 )
2017-05-19 10:09:46 +05:30
Trishna Guha
8937246f8f
Fix nxos ospf and Unit test ( #24613 )
...
* nxos_ospf fixes refactor
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* unit test nxos_ospf
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-05-17 11:16:41 +05:30
Nathaniel Case
f240ba6b60
nxos_bgp_neighbor cleanup ( #24446 )
2017-05-16 10:14:10 -04:00
Ilya Drey
62b8813873
Improving nxos_ip_interface module ( #21353 )
...
* Improving of nxos_ip_interface module
Added features:
* Route tags for an IP address at interface level with 'tag' option
* Support of IPv4 secondary addresses if option 'allow_secondary' is
true (false by default). If option 'allow_secondary' is true primary
IPv4 address will be replaced
All features support NXAPI and CLI transport, but only with text/raw
output. Currently not possible to get route tags for secondary IPv4/IPv6
addresses from JSON output.
Other changes:
* Module return state 'changed' only when configuration commands were
executed
* Module result includes multiple prefixes if IPv4 addresses were
found
* Fix PEP8 issues
* Addition fix of PEP8 issues
* Remove unused variable from main()
* Fix "proposed" sample in RETURN variable
* Fix "existing" sample in RETURN variable
* Update RETURN variable
Add 'secondary' for every element of 'addresses' list.
* Restore old version number
* Added exception when ipaddress module is imported
* DOCUMENTATION string was updated
* Added 'version_added' for new features
* Added 'requirements' for module
* Added compatibility with latest commit in devel branch
* DOCUMENTATION was fixed
* Improve changes of route tag for existing ip addresses
* Added compatibility with core code
* Fixed mistypes in the DOCUMENTATION variable
* argument_spec fixed
allow_secondary argument type was changed according to allowed choices.
2017-05-12 11:45:44 -04:00
Gabriele
78ed0cadea
Fixing nxos_ntp ( #20651 )
...
* Fixing nxos_ntp
* Fixing style issues
2017-05-12 11:36:44 -04:00
Abhijeet Kasurde
3d51081a59
Refactor nxos_reboot module ( #24484 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-05-11 13:14:31 +05:30
Trishna Guha
b2a2f69a6e
nxos_vrf_af fix and unit test ( #24399 )
...
* nxos_vrf_af fix and unit test
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* ansibot told me to do this
* use sorted() as the test list elements differ in order for python2.x and 3.x
2017-05-11 10:54:47 +05:30
Trishna Guha
62eafa8837
fixes nxos_evpn_vni and unittest ( #24372 )
...
* fixes nxos_evpn_vni
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fixes pep8 issue and syntax error
* ansibot tole me to do this
* Unit test
2017-05-11 10:54:05 +05:30
Nathaniel Case
09b2964dee
nxos_bgp_af updates ( #24171 )
...
* update docs
* clean up nxos-bgp_af
* Remove useless params from bgp_af
* Add bgp_af tests
2017-05-10 16:12:00 -04:00
Abhijeet Kasurde
2f26c5285a
Refactor nxos_file_copy module ( #24314 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-05-10 22:15:42 +05:30
Nathaniel Case
830f19d444
nxos_bgp updates ( #24270 )
...
* Remove invoke from nxos_bgp
* Try to simplify get_existing
* Streamline state_present
* More testing, squash & compact get_value & get_custom_value
* Streamline main
* nxapi has problems reading CustomNetworkConfig directly
2017-05-08 11:38:50 -04:00
Trishna Guha
ad0a01ffb5
nxos_vrf refactor ( #24280 )
...
* nxos_vrf refactor
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Unit test for nxos_vrf
Remove unnecessary keys() method
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-05-05 15:38:30 +05:30
Trishna Guha
986765312f
Fixes #23948 body not defined nxos_hsrp ( #24093 )
2017-05-05 08:36:00 +05:30
Trishna Guha
67bd8f9204
fixes nxos_interface ( #24199 )
...
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-05-05 08:35:16 +05:30
Nathaniel Case
dce2d5eea9
Remove `provider` requirement from nxos_vrf ( #24118 )
...
Fixes #23920
2017-05-01 09:32:53 -04:00
John R Barker
3d4523f231
Correct RETURN data types for Network modules ( #24104 )
...
`path` isn't a datatype
2017-04-28 12:15:18 +01:00
Trishna Guha
bc22223d63
Fixes #23890 Remove idle ShellError exception and get_exception() method from nxos modules ( #23947 )
...
Remove idle ShellError exception and get_exception() method from nxos modules
2017-04-28 10:42:15 +05:30
Trishna Guha
2741907cba
Refactor nxos_interface and add unit test ( #24008 )
...
* [WIP] Refactor nxos_interface
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Modification in refactor
Unittest for nxos_interface
2017-04-27 21:19:10 +05:30
Nathaniel Case
0d67a49d5a
nxos_bgp fixes ( #23927 )
...
* Pre-emptively fix sanity/pep8
* fix for commands
* Quick unit test
2017-04-26 16:33:54 -04:00
Nathaniel Case
c0ebdf144d
nxos_acl_interface fixes ( #23917 )
...
* Update nxos_acl_interface
* Add basic unit tests to nxos_acl_interface
2017-04-26 16:32:36 -04:00
Nathaniel Case
f0914ee3c2
nxos_acl fixes ( #23915 )
...
* Update nxos_acl
* unit tests for nxos_acl
* Remove nxos_acl from pep8-legacy
2017-04-26 16:29:53 -04:00
Nathaniel Case
0b4cebfb8b
nxos_vlan tweaks ( #23194 )
...
* Remove commented code
Remove a lot of unnecessary output
* Tests
* Sort vlan ids _after_ running set operations, so order is not lost
2017-04-18 10:49:47 -04:00
Nathaniel Case
e1dcc01d3a
pep8 fix for Shippable
2017-04-17 13:18:34 -04:00
Daniel
bbb9f3164c
Nxos vxlan vtep vni netcfg fix ( #23620 )
...
* Code cleanup
Removed 'add' method from CustomNetworkConfig. It is identical
to the one inherited from NetworkConfig
* Removed unused CustomNetworkConfig import
* Replaced
```
def get_existing(module, args):
existing = {}
netcfg = get_config(module)
config = netcfg.get_section(parents)
```
with
```
netcfg = CustomNetworkConfig(indent=2, contents=get_config(module))
```
get_config returns a string, not an object in 2.3.
* Removed non-functioning get_object method in CustomNetworkConfig in favor of the
inherited method.
Added child_objs property so that expand_selection would work. The original
verion never worked correctly as it compared NetworkConfig obj's and str's.
* Removed ShellError method in favor or new load_config method.
* Removed ShellError method in favor or new load_config method.
fixes #20260
* nxos requires a "no" statement to change mcase group. Corrected.
Corrected changed logic.
* Corrected deleted CustomNetworkConfig import
2017-04-17 12:40:13 -04:00
Nathaniel Case
e518b6f5b4
Clean up import statements for nxos_rollback ( #23540 )
...
* Clean up import statements for nxos_rollback
* Don't try to deal with pre-2.3 logic
2017-04-17 08:51:38 -04:00
John R Barker
2bb25d031b
network_cli modules don't always return stdout or stdout_lines ( #23573 )
...
It's possible that if the module has a low-level failure, such as
"unable to open shell", or something else in the action plugin that
stdout and stdout_lines will not be returned.
Update the documentation to clarify this point.
2017-04-13 11:59:23 -04:00
John R Barker
902bc58509
[WIP] Network return docs ( #23441 )
...
Network return docs
2017-04-12 13:13:41 -04:00
Nathaniel Case
98c23a3342
Attempt to clear up nxos_mtu tests and documentation ( #23361 )
...
nxos_system wasn't added until 2.3, so nxos_mtu should have been deprecated
then.
2017-04-06 12:26:17 -04:00
Nathaniel Case
d890167575
Fix nxos_facts for nxapi transport ( #23302 )
...
* Partial revert of 2e476e64cd
This broke handling of nxos_facts over nxapi
* Fix nxos_facts tests not run in isolation
2017-04-05 11:47:37 -04:00
Peter Sprygada
2e476e64cd
fixes error parsing lldp neighbors when running nxos_facts ( #23134 )
2017-03-30 11:30:50 -04:00
Gabriele
9b2bdf2df6
Fixing module behavior when route_target_both is used ( #20076 )
2017-03-25 08:02:15 -04:00
Gabriele
d7d76f3aaf
Fixing nxos_vrf_interface when interface name is not full ( #22769 )
2017-03-23 22:57:24 -04:00
Peter Sprygada
866f67e213
fixes a number of issues with nxos_facts ( #22923 )
...
* updates command runs to return warning if command fails
* fixes variable issues from recent refactoring
* removes provider from return of module
2017-03-23 22:35:15 -04:00
Matt Martz
02f66b9369
E1 legacy pep8 fixes ( #21933 )
...
* E1 pep8 fixes
* e111 fix for rds.py
2017-03-21 21:19:40 -05:00
John R Barker
08d9a5932f
metadata_version
2017-03-15 17:28:52 +00:00
John R Barker
f82239e1f7
[WIP] Network module docs 2.3 ( #22454 )
...
* Tidy up docs for network 2.3 modules
* Use suboptions
* Correct indentation
* more tidyup
* bulk updates
* more tidyup
* Bulk changes
* nxos_mtu is dead
* revert
* NXOS_mtu is dead, also better layout
* rebase
* rebase
2017-03-15 16:00:43 +00:00
Toshio Kuratomi
eb1214baad
New metadata 1.0 ( #22587 )
...
Changes to the metadata format were approved here:
https://github.com/ansible/proposals/issues/54
* Update documentation to the new metadata format
* Changes to metadata-tool to account for new metadata
* Add GPL license header
* Add upgrade subcommand to upgrade metadata version
* Change default metadata to the new format
* Fix exclusion of non-modules from the metadata report
* Fix ansible-doc for new module metadata
* Exclude metadata version from ansible-doc output
* Fix website docs generation for the new metadata
* Update metadata schema in valiate-modules test
* Update the metadata in all modules to the new version
2017-03-14 09:07:22 -07:00
John R Barker
aa3fbb0d54
Restore extends_documentation_fragment: nxos ( #22312 )
...
* Restore extends_documentation_fragment: nxos
* Restore extends_documentation_fragment: nxos
2017-03-06 13:53:33 +00:00
Peter Sprygada
8d76703a9d
fix for handling commands that return no data or error ( #22086 )
...
This patch addresses a problem in nxos_facts where certain commands are
not supported or return no data, the module would raise an exception.
With this patch, the nxos_facts module will now print a warning for any
commands that return no data and not populate the facts.
fixes #22001
2017-03-02 16:02:16 -06:00
Peter Sprygada
c26cac2a53
catches exception in nxos_command and returns failed message ( #22151 )
...
Catches exception in Conditional check and returns appropriated failed
message
2017-03-01 12:41:31 -05:00
Peter Sprygada
ebc2716be7
removes old module.connected property from result ( #21977 )
2017-02-26 23:14:56 -05:00
Peter Sprygada
216877c6ca
adds system_mtu argument to nxos_system ( #21970 )
...
* updates argument_spec
* adds unit test case
2017-02-26 11:33:58 -05:00
Peter Sprygada
4c354c9c70
adds integration tests cases for nxos_feature ( #21966 )
2017-02-26 08:12:57 -05:00
Peter Sprygada
10b23f3a00
adds unit test cases for nxos_command ( #21959 )
2017-02-26 07:38:08 -05:00
Peter Sprygada
0cb2019293
roll up of bug fixs for nxos_evpn_global ( #21961 )
...
* updates nxos_evpn_global module
* adds integration test cases
* adds unit test cases
2017-02-26 06:45:26 -05:00
Peter Sprygada
a284c3f7ea
roll up of fixes for nxos_facts ( #21954 )
...
* fixes commands to work with nxapi
* updates test case timeouts
2017-02-25 17:48:09 -05:00
Peter Sprygada
14c05d9e2b
roll up of fixes for nxos_config ( #21949 )
...
* fixes provider to not log entries
* fixes nxapi send_request with config statements
* fixes nxapi get_config()
* updates nxos_config integration tests
2017-02-25 16:36:00 -05:00
Peter Sprygada
01ac1bc6e5
roll up of fixes from nxos integration tests ( #21948 )
...
* now fails nxos_nxapi if the transport=nxapi
* fixes typos in nxos_nxapi integration tests cases
2017-02-25 13:17:04 +00:00
Matt Martz
305c88700d
PEP8 E712 fixes ( #21916 )
2017-02-24 16:49:43 -06:00
Peter Sprygada
c3150fbfa9
fixes _nxos_template to use persistent connection ( #21841 )
...
The module needed full update to use the persistent connection
introduced in Ans2.3.
fixes #21835
2017-02-23 16:59:41 -05:00
Peter Sprygada
381f7209f8
fixes issue in nxos_config when retrieving current config ( #21843 )
...
When parsing the configuration, the wrong indent level was set so the
configurations could not be properly compared. Also noted that
defaults: yes needed to be added to the integration tests to make the
test cases valid, which is also included in this patch
fixes #21828
2017-02-23 16:59:29 -05:00
Peter Sprygada
06d0278290
fix bug that would cause stack trace in nxos_nxapi ( #21861 )
...
The parse_sandbox function will generate a stack trace if the command
is not supported. This patch will resolve that issue.
2017-02-23 16:59:06 -05:00
Peter Sprygada
b25c51f99a
cast http_port, https_port to int from config ( #21840 )
...
When retrieving the http_port, https_port values from the configuration
of the device, the values need to cast to int in order to correctly
compare against the argspec values. This patch fixes that problem.
fixes #21832
2017-02-23 13:05:59 +00:00
Peter Sprygada
ab0f992b3a
fixes import statement in nxos_facts module ( #21834 )
...
trying to import from the wrong shared lib, this patch changes
network_common to connection. Also fixes a bug found in the nxos
action plugin to detect transport
fixes #21829
2017-02-23 13:00:34 +00:00
Peter Sprygada
730bd682c6
sends save command in text mode otherwise it fails ( #21812 )
...
Sending the save command over nxapi requires text mode otherwise nxapi
will reject the command. This commit ensures that the command is always
sent in text mode
fixes #18971
2017-02-22 22:41:14 -05:00
Peter Sprygada
7b30203016
cleans up nxos_vlan output ( #21807 )
...
Only returns debug return keys when the debug flag is set
2017-02-22 20:36:43 -05:00
Peter Sprygada
9e6980a039
fixs command dict to be sent to connection socket ( #21713 )
...
There as an invalid key in the command dict that would cause failure
using prompts. This changes the key from response to answer which is
what is expected by network_cli
2017-02-22 09:44:04 -05:00
Peter Sprygada
76c9ad9dfc
new module nxos_system ( #21627 )
...
* provides declarative config support for nxos system attributes
* adds unit test cases for new module
2017-02-18 18:56:02 -05:00
Peter Sprygada
920f9f4815
fixes nxos nxapi implementation ( #21615 )
...
* correctly maps play_context to nxapi values
* fixes bug in nxos_nxapi module detecting nxapi feature
* updates nxos shared lib provider values
* fixes missing ssh_keyfile in nxos shared lib
2017-02-18 11:20:26 -05:00
Matt Martz
7c00346714
Validate EXAMPLES as YAML
2017-02-15 13:01:43 -08:00
Peter Sprygada
21d993a4b8
refactors nxos module to use persistent connections ( #21470 )
...
This completes the refactor of the nxos modules to use the persistent
connection. It also updates all of the nxos modules to use the
new connection module and preserves use of nxapi as well.
2017-02-15 11:43:09 -05:00
Gabriele
db786fc211
Fixing nxos_portchannel bug caused by wrong regex ( #20850 )
2017-02-14 16:08:43 -05:00
Gabriele
5fbe64a324
Fixing nxos modules when interface is loopback ( #20645 )
...
* Fixing modules when interface is loopback
* Remove capitalize
2017-02-14 12:10:46 -05:00
Brian Coca
74e8aa22af
no log passwords ( #21229 )
...
* no log passwords
* removed unneeded no_log
2017-02-10 15:13:59 -05:00
Matt Clay
462ab6b1db
PEP 8 E111 cleanup for nxos modules.
2017-01-30 15:45:05 -08:00
Matt Clay
10d9318de7
PEP 8 indent cleanup. ( #20800 )
...
* PEP 8 E121 cleanup.
* PEP 8 E126 cleanup.
* PEP 8 E122 cleanup.
2017-01-29 07:28:53 +00:00
Matt Clay
e2c0b375d3
PEP 8 cleanup. ( #20790 )
...
* PEP 8 E115 cleanup.
* PEP 8 E131 cleanup.
2017-01-28 01:39:40 -08:00
Matt Clay
d913f69ba1
PEP 8 W291 whitespace cleanup.
2017-01-27 17:08:02 -08:00
Matt Clay
95789f3949
PEP 8 whitespace cleanup. ( #20783 )
...
* PEP 8 E271 whitespace cleanup.
* PEP 8 W293 whitespace cleanup.
* Fix whitespace issue from recent PR.
2017-01-27 15:45:23 -08:00
Matt Clay
63b1e0c277
Fix infrequent PEP 8 issues.
2017-01-27 14:06:21 -08:00
Gabriele
c980b52d33
Fixing issue when multiple vni exist ( #19928 )
2017-01-06 16:36:13 -05:00
Gabriele
f2baa6d61a
fix nxos_facts to support multiple neighbors and modules ( #19946 )
2017-01-06 16:34:59 -05:00
John R Barker
40ecc3188f
Use M() to link to the replacement module. ( #19976 )
2017-01-06 16:21:39 +00:00
Daniel
7cf9ee30a5
Removed 'no vn-segment' when state == 'absent' ( #19952 )
2017-01-05 22:03:46 +00:00
Gabriele
c58278b1c2
Fixing nxos_ntp when no config exists ( #19678 )
2017-01-03 10:50:31 -05:00
Eric Beahan
dce8f3899e
Modify an initial value causing exception when vlan_range param is present ( #19019 )
2016-12-15 16:31:34 -05:00
Andrea Tartaglia
ef391a11ec
Removed dict.iteritems() in modules. ( #18859 )
...
This is for py3 compatibility, addressed in #18506
2016-12-12 15:16:23 -08:00
Matt Clay
2cb6a10a0e
Fix module names in module docs.
2016-12-09 18:13:57 -07:00
James Cammarata
fa5386c488
Some additional module cleanup of mistakes made during merging
2016-12-08 11:35:20 -05:00
James Cammarata
14833f1c7a
A few more organizational cleanups from the repo merge
2016-12-08 11:35:19 -05:00
James Cammarata
8afa090417
Resolving differences in core modules post-merge
2016-12-08 11:25:36 -05:00
Toshio Kuratomi
7319104552
Refreshed metadata for core modules
2016-12-08 11:25:35 -05:00
René Moser
507559dba5
doc: network: fix syntax errors in examples ( #5780 )
2016-12-08 11:25:34 -05:00
Sam Doran
c0c26f83a8
Examples syntax batch7 ( #5624 )
...
* Change example syntax on nxos_feature module
* Change example syntax on nxos_hsrp module
* Change example syntax on nxos_igmp module
* Change example syntax on nxos_interface module
* Change example syntax on nxos_interface_ospf module
* Change example syntax on nxos_ip_interface module
* Change example syntax on nxos_ping module
* Change example syntax on nxos_switchport module
* Change example syntax on nxos_vlan module
* Change example syntax on nxos_vrf module
* Change example syntax on nxos_vrf_interface module
* Change example syntax on nxos_vrrp module
* Change example syntax on meta module
* Change example syntax on set_fact module
* Change example syntax on win_copy module
* Change example syntax on win_file module
* Change example syntax on win_get_url module
Remove escaping of \ characeter in Windows paths since it's no longer required for single quoted or unquoted values when using multi-line YAML syntax.
* Change example syntax on win_lineinfile module
* Change example syntax on win_msi module
* Change example syntax on win_stat module
* Remove nxos_bgp example from nxos_igmp module
* Mark examples as regexp to avoid syntax error
* Cleanup win_copy.py examples
* Cleanup win_file.py examples
* Remove quotes in win_get_url.py examples
* Cleanup quotes and languare in win_lineinfile.py
* Cleanup examples in win_group.py
* Cleanup examples in win_service.py
* Don't use : in documentation because it breaks the YAML syntax check
* Cleanup win_copy.py examples
* Cleanup win_copy.py examples
* Minor change to fix test failure
* Use single quotes
2016-12-08 11:25:33 -05:00
Dag Wieers
54fdff16db
Performance improvement using in-operator on dicts
...
Just a small cleanup for the existing occurrences.
Using the in-operator for hash lookups is faster than using .keys()
http://stackoverflow.com/questions/29314269/why-do-key-in-dict-and-key-in-dict-keys-have-the-same-output
2016-12-08 11:25:31 -05:00
John R Barker
2a9e5687eb
Correct typos in docs strings ( #5233 )
2016-12-08 11:25:25 -05:00
Michael Scherer
18b0920311
Do not leak the vtp_password in log ( #5199 )
2016-12-08 11:25:20 -05:00
John R Barker
25b6492d37
Bulk spelling improvement to modules-core ( #5225 )
...
* Correct spelling mistakes
* Correct more spelling issues
* merge conflict
* Revert typo in parms
2016-12-08 11:25:20 -05:00
John Barker
bca8bbe7c2
Correct functional typos
2016-12-08 11:25:19 -05:00
Nathaniel Case
5a8ebf5953
nxos module cleanup ( #5065 )
...
* Fix imports on nxos_bgp* modules
* Fix imports on nxos_evpn* modules
* Cleanup issues for nxos_facts
* Shuffle imports for nxos_template
* Fix imports on nxos_ospf* modules
* Fix nxos_hsrp
As get_hsrp_groups_in_devices is not actually called anywhere, I presume this
change is reasonable.
* Fix imports on nxos_interface* modules
* Update nxos_static_route imports
* update nxos_vrf
* Update nxos_config imports
2016-12-08 11:25:19 -05:00
Bill Nottingham
765269e547
Fix deprecation notices. ( #5180 )
2016-12-08 11:25:19 -05:00
Gabriele
f8d2be407d
Fixing docstring ( #5130 )
2016-12-08 11:25:18 -05:00
Gabriele
b4565b6667
Adding more details on DOCSTRING about how to use the module ( #5121 )
2016-12-08 11:25:18 -05:00
Peter Sprygada
9707ae6490
adds exception handling for AddConditionError ( #5124 )
...
AddConditionErrors are now handled by nxos_command and a well formed error
is returned from the module
2016-12-08 11:25:17 -05:00
Gabriele
d4c2a13325
Improving nxos_igmp_snooping ( #5011 )
2016-12-08 11:25:17 -05:00
Gabriele
3c257688bc
Fixing nxos_igmp_interface ( #5010 )
2016-12-08 11:25:17 -05:00
Gabriele
b6c07bc9e9
Fixing nxos_hsrp ( #5009 )
...
* Fixing nxos_hsrp
* Adding space after =
2016-12-08 11:25:17 -05:00
Gabriele
62bf8d0c78
Add ethernet-link-oam mapping to nxos_feature ( #4956 )
...
* Add ethernet-link-oam mapping
* Adding port-secutiry mapping
* Fixing command output format
2016-12-08 11:25:17 -05:00
Gabriele
67d6f2c0d6
Fixing nxos_vlan ( #5005 )
...
* Fixing nxos_vlan
* Fixing docstring
* Fixing docstring
2016-12-08 11:25:17 -05:00
Gabriele
43632951fe
Fixing nxos_aaa_server ( #5002 )
...
* Fixing command output formatting
* Fixing cmds
2016-12-08 11:25:17 -05:00
Gabriele
7f861fb9ce
Fixing nxos_acl ( #5006 )
...
* Fixing nxos_acl
* Fixing nxos_acl
2016-12-08 11:25:17 -05:00
Gabriele
272b20000f
Fixing nxos_acl_interface ( #5007 )
2016-12-08 11:25:17 -05:00
Gabriele
75c4051933
Fixing nxos_interface ( #5012 )
2016-12-08 11:25:16 -05:00
Gabriele
1be7ca4f70
Fxing nxos_ip_interface ( #5013 )
2016-12-08 11:25:16 -05:00
Gabriele
6708874f1c
Fixing nxos_mtu ( #5014 )
2016-12-08 11:25:16 -05:00
Gabriele
6934f11e1f
Fixing nxos_ntp ( #5015 )
2016-12-08 11:25:16 -05:00
Gabriele
6201a57d83
Fixing nxos_ntp_auth ( #5016 )
2016-12-08 11:25:16 -05:00
Gabriele
c50324fb08
Fixing nxos_ntp_options ( #5017 )
2016-12-08 11:25:16 -05:00
Gabriele
4b6ee73f8c
Fixing nxos_pim_interface ( #5018 )
2016-12-08 11:25:16 -05:00
Gabriele
5b96fb1dac
Fixing nxos_portchannel ( #5019 )
2016-12-08 11:25:16 -05:00
Gabriele
ebb39a0151
Fixing nxos_smu ( #5021 )
2016-12-08 11:25:16 -05:00
Gabriele
cda65cad18
Fixing nxos_snmp_community ( #5022 )
2016-12-08 11:25:16 -05:00
Gabriele
f74275fc1d
Fixing nxos_snmp_contact ( #5023 )
2016-12-08 11:25:16 -05:00
Gabriele
73d66e28ab
Fixing nxos_snmp_host ( #5024 )
2016-12-08 11:25:16 -05:00
Gabriele
7c7eee94b2
Fixing nxos_snmp_location ( #5025 )
2016-12-08 11:25:16 -05:00
Gabriele
19769903e6
Fixing nxos_snmp_traps ( #5026 )
2016-12-08 11:25:16 -05:00
Gabriele
bf59e458b1
Fixing nxos_snmp_user ( #5027 )
2016-12-08 11:25:16 -05:00
Gabriele
04e62346d1
Fixing nxos_udld_interface ( #5030 )
2016-12-08 11:25:16 -05:00
Gabriele
6bedeb28d8
Fixing nxos_switchport ( #5028 )
2016-12-08 11:25:16 -05:00
Gabriele
773f1703b7
Fixing nxos_udld ( #5029 )
2016-12-08 11:25:15 -05:00
Gabriele
d61950d48c
Fixing nxos_vpc_interface ( #5032 )
2016-12-08 11:25:15 -05:00
Gabriele
51c37e9f58
Fixing nxos_vrf ( #5033 )
2016-12-08 11:25:15 -05:00
Gabriele
8f331e01ca
Fixing nxos_vpc ( #5031 )
2016-12-08 11:25:15 -05:00
Gabriele
9ff6070eb8
Fixing nxos_vrf_interface ( #5034 )
2016-12-08 11:25:15 -05:00
Gabriele
e7286ed43c
Fixing nxos_vtp_domain ( #5036 )
2016-12-08 11:25:15 -05:00
Gabriele
c19e3b5924
Fixing nxos_vrrp ( #5035 )
2016-12-08 11:25:15 -05:00
Gabriele
f89cb1717c
Fixing nxos_vtp_password ( #5037 )
2016-12-08 11:25:15 -05:00
Gabriele
b897b497c1
Fixing nxos_vtp_version ( #5038 )
2016-12-08 11:25:15 -05:00
John R Barker
177dcadbc0
deprecated _template network modules: Rename in modules-core ( #5072 )
2016-12-08 11:25:14 -05:00
Peter Sprygada
654a38897f
fixes exception raised when nxos_facts uses nxapi transport ( #4988 )
...
This fixes a condition where an exception is raised when collecting `interface`
facts and the transport is set to nxapi in the nxos_nxapi module.
fixes ansible/ansible#17691
2016-12-08 11:25:13 -05:00
Peter Sprygada
88b2c7e1f6
fixes bug where setting state=absent in nxos_nxapi is not idempotent ( #4984 )
...
When setting state=absent the nxos_nxapi module would always try to remove
the configuration regardless of the current state of the device. This will
fix that problem.
This also updates the docstring to correctly reflect https as default=no
fixes #4955
depends on ansible/ansible#17728
2016-12-08 11:25:13 -05:00
Josh Lothian
319b2b28cb
Fix YAML syntax in NXOS documentation ( #4922 )
...
* Fix YAML syntax in NXOS documentation
Use ':' and not '=' to ensure valid YAML
in the EXAMPLES
* Correcting introduced syntax error
2016-12-08 11:25:11 -05:00
Matt Clay
6cdcf09984
Remove duplicate keys from module docs. ( #4920 )
2016-12-08 11:25:11 -05:00
GGabriele
c47fd4b3e9
Add feature mappings
2016-12-08 11:25:11 -05:00
Peter Sprygada
25375f1057
adds exception handling to nxos_command for FailedConditionalError
...
This adds exception handling as per ansible/ansible#17638 to the
nxos_command module.
2016-12-08 11:25:11 -05:00
GGabriele
6701f038ba
Fixed docstring
2016-12-08 11:25:10 -05:00
GGabriele
0eb63cdeaa
Fixing nxos_portchannel
2016-12-08 11:25:10 -05:00
GGabriele
13e87e3a6c
Adding nxos_igmp_snooping
2016-12-08 11:25:09 -05:00
GGabriele
15c07334c7
Adding nxos_aaa_server_host
2016-12-08 11:25:09 -05:00
GGabriele
4b6a59bd13
Adding nxos_udld_interface
2016-12-08 11:25:09 -05:00
GGabriele
f1a96986c4
Adding 2.1 and 2.2 support to nxos_switchport
2016-12-08 11:25:09 -05:00
GGabriele
e669d3e889
Adding nxos_snmp_user
2016-12-08 11:25:09 -05:00
GGabriele
693f8e623a
Improving argument_spec
2016-12-08 11:25:09 -05:00
GGabriele
2f58306564
Adding nxos_pim_interface
2016-12-08 11:25:09 -05:00
GGabriele
48942d6e32
Fixing docstring
2016-12-08 11:25:09 -05:00
GGabriele
b42f6da0ce
Adding nxos_mtu
2016-12-08 11:25:09 -05:00
GGabriele
d8b2b0387b
Adding nxos_vtp_version
2016-12-08 11:25:09 -05:00
GGabriele
da8aa0dd29
Removing unused function
2016-12-08 11:25:09 -05:00
GGabriele
d53b52d528
Fixing module name
2016-12-08 11:25:08 -05:00
GGabriele
d435aca86e
Adding missing version_added
2016-12-08 11:25:08 -05:00
GGabriele
bf2e0ec953
Adding nxos_vtp_domain
2016-12-08 11:25:08 -05:00
GGabriele
b1f33ca5a0
Improved function
2016-12-08 11:25:08 -05:00
GGabriele
d3de4c160f
Adding nxos_vtp_password
2016-12-08 11:25:08 -05:00
GGabriele
29ea186bd7
Adding nxos_udld
2016-12-08 11:25:08 -05:00
GGabriele
c45e596159
Adding nxos_ntp_options
2016-12-08 11:25:08 -05:00
GGabriele
77b043dcf3
Fixing conditional format
2016-12-08 11:25:08 -05:00
GGabriele
52dfa697c2
Adding nxos_ntp_auth
2016-12-08 11:25:08 -05:00
GGabriele
6efb79bbeb
Adding nxos_aaa_server
2016-12-08 11:25:08 -05:00
GGabriele
821b1606b3
Fixing nxos_interface
2016-12-08 11:25:08 -05:00
GGabriele
095d30ea63
Adding nxos_ntp
2016-12-08 11:25:08 -05:00
GGabriele
5f0060ec41
Fixing argument_spec
2016-12-08 11:25:08 -05:00
GGabriele
57f86c0efc
Fixing docstring format
2016-12-08 11:25:08 -05:00
GGabriele
76d7379d73
Adding nxos_snmp_traps
2016-12-08 11:25:08 -05:00
GGabriele
988d6bbb2b
Fixing return string
2016-12-08 11:25:08 -05:00
GGabriele
37170dd353
Adding nxos_snmp_location
2016-12-08 11:25:08 -05:00
GGabriele
2c8bc37003
Adding RETURN
2016-12-08 11:25:07 -05:00
GGabriele
de8b759df2
Adding nxos_install_os
2016-12-08 11:25:07 -05:00
GGabriele
c5ab15443f
Adding nxos_gir_profile_management
2016-12-08 11:25:07 -05:00
GGabriele
c7ca3654df
Adding nxos_gir
2016-12-08 11:25:07 -05:00
GGabriele
58501d3650
Removing indentations
2016-12-08 11:25:07 -05:00
GGabriele
852f5176a1
Removing indentation
2016-12-08 11:25:07 -05:00
GGabriele
4775c257ea
Fixing file writing format
2016-12-08 11:25:07 -05:00
GGabriele
2016e5d44a
Adding nxos_snapshot
2016-12-08 11:25:07 -05:00
GGabriele
1752082c00
Adding nxos_snmp_host
2016-12-08 11:25:07 -05:00
GGabriele
4a182888b8
Adding nxos_snmp_community
2016-12-08 11:25:07 -05:00
GGabriele
0c4c5467f7
Fixing docstring and more fix
2016-12-08 11:25:07 -05:00
GGabriele
346f83029b
Fixing error handling
2016-12-08 11:25:07 -05:00
GGabriele
e1fab98061
Fixed module structure
2016-12-08 11:25:07 -05:00
GGabriele
4cbcc1f91d
Adding nxos_vxlan_vtep_vni
2016-12-08 11:25:07 -05:00
John Barker
264bb374b9
RETURNS doesn't support markup, so remove it
2016-12-08 11:25:05 -05:00
John Barker
42d5d7b21b
Docs improvements to _config
2016-12-08 11:25:05 -05:00
GGabriele
e375b4c61c
Fixing nxos_feature
2016-12-08 11:25:05 -05:00
John Barker
c01328b597
Document `backup` options
...
To make future diffing easier, use consistent ordering
2016-12-08 11:25:04 -05:00
Peter Sprygada
ad707c2724
roll up updates to nxos_config module
...
* remote 'updates' argument
* clean up functions
* update doc strings
* add required_if dependencies
2016-12-08 11:25:04 -05:00
Andrew Gaffney
bac0c4595c
Fix missing colons in network module examples ( #4778 )
2016-12-08 11:25:03 -05:00
Peter Sprygada
6cca2b06fe
fixes bug where nxos_config wasn't handling checkpoints correctly
2016-12-08 11:25:02 -05:00
GGabriele
bc7b093089
Removed newline
2016-12-08 11:25:01 -05:00
GGabriele
dfa9904599
Added missing fullstop
2016-12-08 11:25:01 -05:00
GGabriele
87b839e1f8
Adding missing fullstop
2016-12-08 11:25:01 -05:00
GGabriele
d2d1b18ef4
Fixed param value format in docstring
2016-12-08 11:25:01 -05:00
GGabriele
745b504aa1
Fixed module structure and added one new param
2016-12-08 11:25:01 -05:00
GGabriele
a71b84853c
Fixed config function
2016-12-08 11:25:01 -05:00
GGabriele
f577f46ccf
fix imports
2016-12-08 11:25:01 -05:00
Peter Sprygada
807974f515
updates nxos_config to remove state argument
...
The state argument should not be in the nxos_config module. This change
removes the state argument for this release
2016-12-08 11:25:01 -05:00
GGabriele
7010a66638
Removed tabs
2016-12-08 11:25:01 -05:00
GGabriele
174ffde2e9
Adding nxos_igmp_interface
2016-12-08 11:25:00 -05:00
GGabriele
93d816a183
Adding nxos_igmp
2016-12-08 11:25:00 -05:00
GGabriele
693fc690d7
nxos_vrf_interface support for 2.1 and 2.2
2016-12-08 11:25:00 -05:00
GGabriele
0303c813c8
Updating nxos_vrf
2016-12-08 11:25:00 -05:00
GGabriele
7560c6dac2
nxos_vlan support 2.1 and 2.2
2016-12-08 11:25:00 -05:00
GGabriele
7391b5ba63
nxos_ping support for 2.1 and 2.2
2016-12-08 11:25:00 -05:00
GGabriele
85e65a7873
nxos_ip_interface support for 2.1 and 2.2
2016-12-08 11:25:00 -05:00
GGabriele
631ee66ed9
Adding nxos_reboot
2016-12-08 11:25:00 -05:00
GGabriele
6d9a63a08b
Fix PR
2016-12-08 11:25:00 -05:00
GGabriele
4c3a1e37ff
Added python object for 2.1 and 2.2 support
2016-12-08 11:25:00 -05:00
GGabriele
4bcf5797b6
Increase timeout
2016-12-08 11:25:00 -05:00
GGabriele
3c0a1675c0
Adding nxos_rollback
2016-12-08 11:25:00 -05:00
GGabriele
25f9d122aa
Adding nxos_vxlan_vtep
2016-12-08 11:25:00 -05:00
GGabriele
b3c428e61f
Adding nxos_vrf_af
2016-12-08 11:25:00 -05:00
GGabriele
705b61ae7a
Adding nxos_portchannel
2016-12-08 11:24:59 -05:00
GGabriele
933a555408
Adding nxos_vpc
2016-12-08 11:24:59 -05:00
GGabriele
eb32565b73
Adding nxos_static_route
2016-12-08 11:24:59 -05:00
GGabriele
4ee018e51d
Fix error handling
2016-12-08 11:24:59 -05:00
GGabriele
1d393941c0
Adding nxos_smu
2016-12-08 11:24:59 -05:00
GGabriele
751f63c6a2
Adding nxos_pim_rp_address
2016-12-08 11:24:59 -05:00
GGabriele
1327e6bcd4
Adding nxos_pim module
2016-12-08 11:24:59 -05:00
GGabriele
9c254656aa
Fixing module description
2016-12-08 11:24:59 -05:00
GGabriele
2b434515d5
Addin nxos_overlay_global
2016-12-08 11:24:59 -05:00
GGabriele
cba6804824
Adding nxos_interface_ospf
2016-12-08 11:24:59 -05:00
GGabriele
0a8a84a50d
Adding nxos_hsrp
2016-12-08 11:24:59 -05:00
GGabriele
c902f2da14
Fix typo
2016-12-08 11:24:58 -05:00
GGabriele
aabab30a4f
Fix try/except
2016-12-08 11:24:58 -05:00
GGabriele
e392417232
Adding nxos_file_copy
2016-12-08 11:24:58 -05:00
GGabriele
40e600e901
Adding nxos_evpn_vni
2016-12-08 11:24:58 -05:00
GGabriele
52ed410679
Fixed DOCSTRING
2016-12-08 11:24:58 -05:00
GGabriele
0bedbb6bed
Adding nxos_bgp_neighbor_af module
2016-12-08 11:24:58 -05:00
GGabriele
bd758e8188
Adding nxos_bgp_neighbor module
2016-12-08 11:24:58 -05:00
GGabriele
fdfec51cce
Fixing DOCSTRING yaml format
2016-12-08 11:24:58 -05:00
GGabriele
b5dbfd70d4
Fixing DOCSTRING
2016-12-08 11:24:58 -05:00
GGabriele
e0f4565822
Adding nxos_bgp_af module
2016-12-08 11:24:58 -05:00
GGabriele
a6f09215ec
Adding python object for 2.1 support
2016-12-08 11:24:58 -05:00
GGabriele
77c247ba3b
Adding python objects for 2.1 support
2016-12-08 11:24:58 -05:00
GGabriele
d0acaf72e8
Removing delete for bollean, fixing argparse, embedding python object
2016-12-08 11:24:58 -05:00
GGabriele
5277f645e5
Fixing DOC string
2016-12-08 11:24:57 -05:00
GGabriele
0b887cd193
Fixing RETURN string
2016-12-08 11:24:57 -05:00
GGabriele
6590c4677d
Adding nxos_ospf_vrf module
2016-12-08 11:24:57 -05:00
GGabriele
a678439059
Adding nxos_ospf module
2016-12-08 11:24:57 -05:00
GGabriele
c8016946f3
Adding nxos_evpn_global module
2016-12-08 11:24:57 -05:00