Sam Doran
43a44e6f35
Move utility functions out of basic.py ( #51715 )
...
Move the following methods to lib/anisble/module_utils/common/validation.py:
- _count_terms()
- _check_mutually_exclusive()
- _check_required_one_of()
- _check_required_together()
- _check_required_by()
- _check_required_arguments()
- _check_required_if
- fail_on_missing_params() --> create check_missing_parameters()
2019-03-14 21:29:55 -04:00
Chris Archibald
14d670573a
Ability to add port in portset ( #52734 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* Revert "Revert "changes to clusteR""
This reverts commit f1104a37b42886aebb4d2b2ab27c91c96d97858a.
* Revert "Revert "changes to clusteR""
This reverts commit f1104a37b42886aebb4d2b2ab27c91c96d97858a.
* add ports
2019-03-14 15:39:11 +00:00
Chris Archibald
b5144a36ab
New Module: na_elementsw_initiators ( #52375 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* Revert "Revert "changes to clusteR""
This reverts commit f1104a37b42886aebb4d2b2ab27c91c96d97858a.
* new module
* update author
* update copyright
* fixes
2019-03-14 15:38:49 +00:00
Chris Archibald
fa2e8d8fe1
New Module: na_ontap_snapshot_policy.py ( #52299 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* add snapshot policy
* Revert "Revert "changes to clusteR""
This reverts commit 8e56b999e6cf6a65de339e516f7134a6b6b39cba.
* review change
2019-03-14 13:30:51 +00:00
Bojan Vitnik
edcd921258
XenServer: Fix wrong FakeXenAPI module import in unit tests ( #53634 )
2019-03-14 17:03:52 +05:30
Chris Archibald
0e77eeb205
Merging of broadcast domain and Broadcast domain port ( #51978 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* Add domain ports in to broadcast domain
* ansibot fixes
* Revert "Revert "changes to clusteR""
This reverts commit 2713c75f31cbf81ef1785d6ab9ea5d0d4db9af60.
* Fix author
2019-03-13 18:32:54 +00:00
albinpopote
473596a472
New module: na_ontap_net_subnet ( #50491 )
...
* New module: na_ontap_net_subnet
* Sanity tests Fix
* Fix: correct examples
* Fix: examples syntax
* Correction: Sanity 1
* Code review
* Code review + Bugfix
* Add Unit Tests
* Fix Sanity Indentation tests
* FIX: Validator change request
* FIX : Change unit test json fail message
* FIX: Typo ip_ranges in example section
* FIX: Remove NetApp copyright
2019-03-13 18:31:55 +00:00
Chris Archibald
2e47e9fffa
Modify na_ontap_net_port NetAppModule module format, allow for multiple ports, unit tests ( #52286 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* add update to netport
* Revert "Revert "changes to clusteR""
This reverts commit 8e56b999e6cf6a65de339e516f7134a6b6b39cba.
* fix docs
* fix option
2019-03-13 13:06:37 +00:00
Abhijeet Kasurde
8d4343b94c
iptables: implement log_level parameter ( #52880 )
...
Fixes : #25100
Based upon https://github.com/ansible/ansible/pull/25118
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-03-13 18:10:59 +05:30
Abhijeet Kasurde
f0ef4dae05
iptables: Add support for gateway parameter ( #53465 )
...
When user specifies the JUMP value to 'tee', gateway is required.
This fix adds new parameter 'gateway' to support this functionality.
Fixes : #53170
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-03-13 17:47:44 +05:30
krisvasudevan
651fc88303
Added support for infoblox member object ( #53174 )
...
* changes for member module
2019-03-12 17:48:51 +05:30
Nilashish Chakraborty
9365c0f468
New module for BGP configuration management in Arista EOS ( #52722 )
...
* New module for BGP in EOS
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add function to validate input
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix line indentation
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add integration tests
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix CI
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix sanity test failure
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Remove unused code
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2019-03-12 17:31:58 +05:30
Chris Archibald
1a306ce871
Rewrite of na_ontap_snapshot to follow NetAppModule, add new option to rename snapshot, bug fix to modify snapmirror_label ( #52297 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* upadets
* fix docs
* Revert "Revert "changes to clusteR""
This reverts commit 8e56b999e6cf6a65de339e516f7134a6b6b39cba.
* review change
2019-03-11 15:49:59 +00:00
Chris Archibald
48098ba688
Updates to na_ontap_net_route ( #49656 )
...
* new option and rewrite
* update documentation
* fix documentation
* Review change
* add comment
2019-03-11 14:43:26 +00:00
Chris Archibald
dbcfb3d0fe
Update to na_ontap_firewall_policy ( #51976 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* Fix issue and unit tests
* update to firewall
* fix import issues
* Revert "Revert "changes to clusteR""
This reverts commit 2713c75f31cbf81ef1785d6ab9ea5d0d4db9af60.
* fix docs
* stop pylint on unicode line, line can only be run in python2
* Review comment
* add pylint skip
* add pylint skip
2019-03-11 13:56:30 +00:00
Trishna Guha
a41028244d
Add platform facts in network facts modules ( #51434 )
...
* Add platform facts in network facts modules
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add nxos
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add vyos
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add iosxr
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* Add junos
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fix pep8
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* update unit test
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fix vyos_facts unittest
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fix ios_facts unittest
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fix iosxr unittests
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fix CI failure
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fix junos test
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2019-03-11 10:56:39 +05:30
Ankit Bhansali
85ba4d7c73
itential iap_start_workflow module ( #51238 )
...
* initial commit
* fixed the linting and requests error
* updated test file setup
* updated code as per feedback
* updated test import
* updated test import with unittest
* updated validate certs for https
* updated after pep8 test
* removed under-construction remark
* Initial commit
* removed type for tests
* removed types and added ssl compatibility
* applied return type
* applied return type as dict instead of obj
* applied types in eact field
* tested with a playbook
* modified owner
* added unit test
* following pep8 guidelines
* added mock and unittest separately
* Sanity check using pep8
* added full path on patch
2019-03-07 13:23:40 -05:00
hexdump0x0200
4d407d1781
ios_logging: fix idempotence errors ( #53109 )
...
* ios_logging: fix the error checking the existence of "host" destinations (IOS 12)
In the "have" list, records of type "host" do not contain the key "size",
although in the list "want" it is always there. Because of this, the module
assumes that the "host" type destinations is not configured and does it again.
This does not change the configuration on the device, but is redundant and
the status of the task will always be "changed". This patch fixes it.
* ios_logging: fixes #53227
* ios_logging: minor changes in string matching
2019-03-07 17:40:03 +05:30
abirami-n
ce9fc9b912
opx_cps_changes ( #51952 )
2019-03-07 03:41:36 -05:00
ftntcorecse
be3fe8f364
FortiManager Plugin Module Conversion: fmgr_ha ( #52768 )
...
* Auto Commit for: fmgr_ha
* Auto Commit for: fmgr_ha
* Removed about 50 lines of validation in favor of "required_if" clauses.
2019-03-07 12:31:17 +05:30
Anil Kumar Muraleedharan
77565554c8
To fix bug on switch port issue of L3 interfaces. ( #53267 )
...
* To fix bug on switch port issue of L3 interfaces.
* Adding mock return value for is_switch_port method
2019-03-06 12:08:53 -05:00
Chris Archibald
04c6f94269
New Module: na_ontap_quotas ( #49783 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* new module na_ontap_quotas
* fix file location
* Fix author
* updates
* Revert "Revert "changes to clusteR""
This reverts commit 1c82958764ea38a91d51d3cfe8a85b418df8f0b8.
* fix author
* Add types
2019-03-05 16:22:31 +00:00
Chris Archibald
af6e4cc75b
Add tcp_max_xfer_size option for na_ontap_nfs, plus unit test ( #52288 )
...
* Revert "changes to clusteR"
This reverts commit 33ee1b71e4bc8435fb315762a871f8c4cb6c5f80.
* updates
* Revert "Revert "changes to clusteR""
This reverts commit 8e56b999e6cf6a65de339e516f7134a6b6b39cba.
* fix docs
* Fix boolean to bool
* Update lib/ansible/modules/storage/netapp/na_ontap_nfs.py
Co-Authored-By: carchi8py <carchi@netapp.com>
2019-03-05 16:04:21 +00:00
ftntcorecse
d1c0df9e92
FortiManager Plugin Module Conversion: fmgr_secprof_web ( #52788 )
...
* Auto Commit for: fmgr_secprof_web
* Auto Commit for: fmgr_secprof_web
* Auto Commit for: fmgr_secprof_web
2019-03-05 14:55:43 +05:30
ftntcorecse
7ee7c3cf2c
FortiManager Plugin Module Conversion: fmgr_secprof_waf ( #52789 )
...
* Auto Commit for: fmgr_secprof_waf
* Auto Commit for: fmgr_secprof_waf
* Auto Commit for: fmgr_secprof_waf
2019-03-05 14:53:30 +05:30
ftntcorecse
60c0069fec
Auto Commit for: fmgr_secprof_spam ( #53021 )
2019-03-05 14:51:33 +05:30
ftntcorecse
55e431de54
Auto Commit for: fmgr_secprof_av ( #53022 )
2019-03-05 14:49:57 +05:30
ftntcorecse
73e6f15d64
Auto Commit for: fmgr_secprof_wanopt ( #53023 )
2019-03-05 14:47:51 +05:30
ftntcorecse
d684359997
Auto Commit for: fmgr_secprof_ips ( #53024 )
2019-03-05 14:44:23 +05:30
ftntcorecse
803c2b4724
New FortiManager Module: fmgr_device_provision_template ( #53025 )
...
* Auto Commit for: fmgr_device_provision_template
* Auto Commit for: fmgr_device_provision_template
* Auto Commit for: fmgr_device_provision_template
2019-03-05 14:42:44 +05:30
ftntcorecse
718a591fb2
New FortiManager Module: fmgr_fwpol_package ( #53026 )
...
* Auto Commit for: fmgr_fwpol_package
* Auto Commit for: fmgr_fwpol_package
* Auto Commit for: fmgr_fwpol_package
2019-03-04 16:46:28 +05:30
ftntcorecse
e585e948fb
New FortiManager Module: fmgr_fwobj_service ( #53027 )
...
* Auto Commit for: fmgr_fwobj_service
* Auto Commit for: fmgr_fwobj_service
2019-03-04 16:43:05 +05:30
ftntcorecse
340aa26edf
New FortiManager Module: fmgr_secprof_appctrl ( #53028 )
...
* Auto Commit for: fmgr_secprof_appctrl
* Auto Commit for: fmgr_secprof_appctrl
2019-03-04 16:39:48 +05:30
ftntcorecse
29657bdda5
New FortiManager Module: fmgr_secprof_proxy ( #53029 )
...
* Auto Commit for: fmgr_secprof_proxy
* Auto Commit for: fmgr_secprof_proxy
* Auto Commit for: fmgr_secprof_proxy
2019-03-04 16:25:02 +05:30
ftntcorecse
421a5c4c91
New FortiManager Module: fmgr_secprof_voip ( #53030 )
...
* Auto Commit for: fmgr_secprof_voip
* Auto Commit for: fmgr_secprof_voip
2019-03-04 16:19:50 +05:30
ftntcorecse
8888faf716
New FortiManager Module: fmgr_fwobj_ippool ( #53031 )
...
* Auto Commit for: fmgr_fwobj_ippool
* Auto Commit for: fmgr_fwobj_ippool
2019-03-04 16:09:56 +05:30
ftntcorecse
0e9bf838ff
New FortiManager Module: fmgr_fwobj_ippool6 ( #53032 )
...
* Auto Commit for: fmgr_fwobj_ippool6
* Auto Commit for: fmgr_fwobj_ippool6
2019-03-04 16:07:55 +05:30
Nilashish Chakraborty
e55955d01b
frr: New module for BGP configuration management ( #51281 )
...
* Added frr_bgp module
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix pycodestyle warnings
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix CI docs issues
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Initial test files
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix dir structure to make CI happy
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix imports
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix CI
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix CI
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Split neighbor spec to handle general session and af session
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* New set of unittests
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix CI
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix CI - 2
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Update license
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add port option for neighbor
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Validate network input
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Validate network input
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix sanity test failure
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add validation for AF and more examples
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2019-03-04 15:02:56 +05:30
Nilashish Chakraborty
55bfa18c0c
New module to support BGP configuration management in IOS ( #49121 )
...
* ios_bgp initial push
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Added tests for ios_bgp
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fixed docs
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Added space
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix Shippable Errors
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix Shippable Errors
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add support for af_neighbor option
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add support for af_neighbor option - 2
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add support for af_neighbor option - 3
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix typo
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Refactor BGP
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix CI and previous reviews
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add missing params documentation
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Remove previous tests
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Remove elements=dict from keys with type=list from args spec for element validation to pass
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Added function to validate input
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix sanity test failure
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Minor bug fixes
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Fix typo in fixture
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
* Add integration tests
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2019-03-04 13:37:57 +05:30
ftntcorecse
13517fe822
FortiManager Plugin Module Conversion: fmgr_device_config ( #52765 )
...
* Auto Commit for: fmgr_device_config
* autopep8 changes
* Auto Commit for: fmgr_device_config
* Auto Commit for: fmgr_device_config
2019-03-04 11:25:40 +05:30
ftntcorecse
785c567f72
FortiManager Plugin Module Conversion: fmgr_device ( #52767 )
...
* Auto Commit for: fmgr_device
* Auto Commit for: fmgr_device
2019-03-04 11:22:16 +05:30
ftntcorecse
a8f1ad8602
FortiManager Plugin Module Conversion: fmgr_query ( #52770 )
...
* Auto Commit for: fmgr_query
* Auto Commit for: fmgr_query
2019-03-04 11:06:12 +05:30
ftntcorecse
c4d29868ca
FortiManager Plugin Module Conversion: fmgr_fwobj_address ( #52773 )
...
* Auto Commit for: fmgr_fwobj_address
* Auto Commit for: fmgr_fwobj_address
* Auto Commit for: fmgr_fwobj_address
* Auto Commit for: fmgr_fwobj_address
* Commit contains updates to module, unit test, and/or fixture files: fmgr_fwobj_address
2019-03-04 10:59:55 +05:30
Bojan Vitnik
88e8330e3e
New module: xenserver_guest_powerstate - manages powerstate of XenServer VMs ( #49425 )
...
* Initial commit for xenserver_guest_powerstate module
* Added unit tests for the module, removed unused imports
2019-02-28 17:55:05 +05:30
Anil Kumar Muraleedharan
a78c40322c
Lenovo cnos logging ( #52978 )
...
* Adding the module cnos_logging.py to the module suite from Lenovo
2019-02-27 14:15:56 -05:00
ftntcorecse
ff368ff55d
FortiManager Plugin Module Conversion: fmgr_secprof_dns ( #52771 )
...
* Auto Commit for: fmgr_secprof_dns
* Auto Commit for: fmgr_secprof_dns
2019-02-27 21:11:33 +05:30
ftntcorecse
e8c983155c
FortiManager Plugin Module Conversion: fmgr_secprof_profile_group ( #52772 )
...
* Auto Commit for: fmgr_secprof_profile_group
* Auto Commit for: fmgr_secprof_profile_group
2019-02-27 21:08:28 +05:30
ftntcorecse
c37f6bed1c
FortiManager Plugin Module Conversion: fmgr_fwobj_vip ( #52774 )
...
* Auto Commit for: fmgr_fwobj_vip
* Auto Commit for: fmgr_fwobj_vip
* Auto Commit for: fmgr_fwobj_vip
* Auto Commit for: fmgr_fwobj_vip
2019-02-27 18:11:03 +05:30
ftntcorecse
b1f117ec99
Auto Commit for: fmgr_device_group ( #52784 )
2019-02-27 12:19:18 +05:30
ftntcorecse
2efacfcdad
FortiManager Plugin Module Conversion: fmgr_fwpol_ipv4 ( #52785 )
...
* Auto Commit for: fmgr_fwpol_ipv4
* Auto Commit for: fmgr_fwpol_ipv4
2019-02-27 12:15:06 +05:30