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
GGabriele
fb4da92308
Fixing typo
2016-12-08 11:24:57 -05:00
GGabriele
a539ea47bc
Adding nxos_acl_interface_module
2016-12-08 11:24:57 -05:00
GGabriele
549ca5183d
Adding RETURN string
2016-12-08 11:24:56 -05:00
GGabriele
a4817cff30
Adding nxos_acl module
2016-12-08 11:24:56 -05:00
GGabriele
bc47cf362b
Fixing string case
2016-12-08 11:24:56 -05:00
GGabriele
882f201aa0
Fixing DOC
2016-12-08 11:24:56 -05:00
GGabriele
2b2636510d
Adding nxos_bgp.py
2016-12-08 11:24:55 -05:00
Peter Sprygada
7280b2642a
update nxos_nxapi module with minor enhancements ( #4573 )
...
* added new config argument
* added states present and absent
* update to use network shared modules
Tested on NXOS 7.3(0)D1(1)
2016-12-08 11:24:55 -05:00
Peter Sprygada
66b0a1ef2d
convert nxos_facts map from dict to frozenset
...
* key maps are now frozenset instead of dict objects
* FactsBase now includes utility functions for transforming json data structures
Tested on NXOS 7.3(0)D1(1)
2016-12-08 11:24:54 -05:00
Peter Sprygada
d0a98bc433
update nxos_template module with network shared module changes
...
This updates the nxos_template module to work with the network shared
modules introduced in Ansible 2.2
Tested on NXOS 7.3(0)D1(1)
2016-12-08 11:24:54 -05:00
Jason Edelman
3b83e676e6
removed feature check for nxos_interface
2016-12-08 11:24:53 -05:00
Peter Sprygada
751eab187f
updates nxos_facts with more fact collections
...
* 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
* maintains backwards capabilitity with 2.1 facts module
Tested on NXOS 7.3(0)D1(1)
2016-12-08 11:24:53 -05:00
Peter Sprygada
12fc073f91
fix example in nxos_command module
2016-12-08 11:24:52 -05:00
Peter Sprygada
e09cfec2e9
added new functionality to nxos_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.
2016-12-08 11:24:51 -05:00
Peter Sprygada
543ec0f14e
update nxos_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 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-12-08 11:24:51 -05:00
Jason Edelman
4f09d6065f
added a period
2016-12-08 11:24:51 -05:00
Jason Edelman
56d8146495
make aliases a list in the docstring
2016-12-08 11:24:51 -05:00
Jason Edelman
47164d70d3
remove commented out code, add alias, and doc
2016-12-08 11:24:51 -05:00
Jason Edelman
b8ff21fb07
updated version_added for new param
2016-12-08 11:24:51 -05:00
Jason Edelman
5d033241af
fixed error handling
2016-12-08 11:24:51 -05:00
Jason Edelman
5640711166
fixed docs
2016-12-08 11:24:51 -05:00
Jason Edelman
995083c0d9
improve functionality for vlan trunks based on #4082
2016-12-08 11:24:51 -05:00
John Barker
3f8f67e359
NXOS Docs update
2016-12-08 11:24:48 -05:00
Nathaniel Case
6857cea9e6
Quick fix to nxos_command and minify imports
2016-12-08 11:24:47 -05:00
Gabriele
1977b42956
Fixing bug, added missing param ( #3737 )
2016-12-08 11:24:31 -05:00
Michael Scherer
c0217e14a7
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
2016-12-08 11:24:29 -05:00
Johannes Meixner
af634ff5c7
network/*/*_config.py: Correct typo.
...
- Replace syntanx with syntax in all things network.
2016-12-08 11:24:27 -05:00
jedelman8
28db5b7dd1
add nxos_interface
2016-12-08 11:24:24 -05:00
Nathaniel Case
75dbe9f1e8
Remove unnecessary exception from nxos_command ( #3521 )
2016-12-08 11:24:23 -05:00
GGabriele
b375f61d2b
Fixed doc
2016-12-08 11:24:22 -05:00
GGabriele
9aeaa70e32
Changed module name to nxos_facts
2016-12-08 11:24:22 -05:00
GGabriele
693f7c938e
Fixing bugs
2016-12-08 11:24:22 -05:00
GGabriele
84ecc21677
Adding nxos_ip_interface
2016-12-08 11:24:22 -05:00
GGabriele
02744e7cab
Adding nxos_vrrp
2016-12-08 11:24:22 -05:00
GGabriele
f4fd69bcff
Adding nxos_ping
2016-12-08 11:24:22 -05:00
jedelman8
be91a5622a
fix index for portchannel
2016-12-08 11:24:22 -05:00
GGabriele
10238bbb06
fix conditional for py24
2016-12-08 11:24:22 -05:00
jedelman8
cda210c3f9
fix docstring
2016-12-08 11:24:22 -05:00
jedelman8
ad9ede5d4c
force travis build
2016-12-08 11:24:21 -05:00
jedelman8
89aabffee8
minor test
2016-12-08 11:24:21 -05:00
jedelman8
01b8f7db5e
update return doc string
2016-12-08 11:24:21 -05:00
GGabriele
66eea14df2
Fixed RETURN string
2016-12-08 11:24:21 -05:00
GGabriele
0798968596
Fixed RETURN string and added notes
2016-12-08 11:24:21 -05:00
GGabriele
97577df048
Fixing nxos_vrf
2016-12-08 11:24:21 -05:00
GGabriele
62b0b48f58
Adding nxos_vrf_interface
2016-12-08 11:24:21 -05:00
GGabriele
2c43f6b35c
Adding nxos_vrf
2016-12-08 11:24:21 -05:00
GGabriele
b4d69262ed
Adding nxos_get_facts
2016-12-08 11:24:21 -05:00
GGabriele
95992b91bd
Addng nxos_feature
2016-12-08 11:24:21 -05:00
jedelman8
6ae109630e
add nxos_vlan
2016-12-08 11:24:21 -05:00
jedelman8
5ef3a6430a
add nxos_switchport
2016-12-08 11:24:21 -05:00
Patrick Ogenstad
d4d86b4bc6
Fix documentation example, missing ")"
2016-12-08 11:24:18 -05:00
John Barker
d531eb146d
Replace BOOLEANS with true/false
2016-12-08 11:24:17 -05:00
Peter Sprygada
834bc225c9
refactors nxos_template and removes diff functions
...
replaces the diff functions with the netcfg shared module for handling
configuration diff
2016-12-08 11:24:15 -05:00
Peter Sprygada
5a61909b4a
refactors nxos_config and removes diff functions
...
this refactors the nxos_config module removing the diff functions and
replacing with the netcfg shared module
2016-12-08 11:24:15 -05:00
Peter Sprygada
19119a2759
cleans up nxos_command and adds some additonal info on exception
...
This cleans up some of the nxos_command module code function names to
be more consistent and adds additional information of failures
2016-12-08 11:24:15 -05:00
Peter Sprygada
11cd361d80
fixes #3274
2016-12-08 11:24:13 -05:00
Peter Sprygada
e01dd7facc
update to nxos_command with additional exception handling
...
This update adds exception handling to catch errors when trying to parse
command output to json. It also removes the dependency on importing json
opting to use the AnsibleModule methods instead
2016-12-08 11:24:12 -05:00
Peter Sprygada
b0a9308e0d
bugfix for handling match=strict in nxos_config
...
Resolves an issue where match=strict would act like match=exact when
evaluating the configuration
2016-12-08 11:24:11 -05:00
chouseknecht
be2a50547e
Moved Conditional class to netcfg.
2016-12-08 11:24:05 -05:00
Peter Sprygada
79b50f5cf8
update nxos_config doc strings and return values
...
This commit unifys the return values for the nxos_config module to always
return updates and responses
2016-12-08 11:24:04 -05:00
Peter Sprygada
4873e8ab12
update nxos_template doc strings and return values
...
This updates the nxos_template doc string to unify the return values
across all network modules. This change now returns stdout, stdout_lines
and failed_conditionals
2016-12-08 11:24:04 -05:00
Peter Sprygada
00d3e33dbf
update nxos_command doc strings and return values
...
This modifies the return values to make them consistent across all
network command modules. The module now returns stdout, stdout_lines
and failed_conditionals
2016-12-08 11:24:04 -05:00
chouseknecht
c690b318da
Adding nxos_nxapi module.
2016-12-08 11:24:03 -05:00
Peter Sprygada
7700ec1f4c
fixup docstring in nxos_config module
2016-12-08 11:24:03 -05:00
Peter Sprygada
022bcbd9e8
initial add of nxos_template module
...
The nxos_template module worksw by allowing configurations to be pushed
to Cisco NXOS devices over CLI or NXAPI and templated using the Ansible
Jinja2 template engine
2016-12-08 11:24:02 -05:00
Peter Sprygada
029786a4c5
initial add of new module nxos_command
...
This adds a new module nxos_command that can be used to send arbitrary
commands to NXOS devices. The module includes an argument that allows
the responses to be evaluated and causes the module not to return
control to the playbook until a set of conditions has been met.
2016-12-08 11:24:02 -05:00
Peter Sprygada
97f666d58d
initial add of new nxos_config module
...
This adds a new module for managing configuraiton files for Cisco NXOS
devices. It provides configuration file management including templating
and backing up the current configuration.
This PR has a dependency on ansible/ansible PR # 14012
2016-12-08 11:24:02 -05:00