Skip to content

Commit b417d34

Browse files
authored
Add new fields to vpn-community-star (#110)
* Add new nat module * Support nat-rule relative positioning + bug fix * New Resource Modules * split vpn param that can accept either a String or list of objects to two * Add new fields to vpn-community-star
1 parent f751b9a commit b417d34

29 files changed

+226
-33
lines changed

CHANGELOG.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ Check_Point.Mgmt Release Notes
55
.. contents:: Topics
66

77

8+
v5.1.0
9+
======
10+
11+
Release Summary
12+
---------------
13+
14+
This is release 5.1.0 of ``check_point.mgmt``, released on 2023-05-18.
15+
16+
Minor Changes
17+
-------------
18+
19+
- cp_mgmt_vpn_community_star - new fields added.
20+
- show command modules - no longer return result of changed=True.
21+
22+
Bugfixes
23+
--------
24+
25+
- cp_mgmt_access_rules - split vpn param that can accept either a String or list of objects to two
26+
827
v5.0.0
928
======
1029

changelogs/.plugin-cache.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,4 +1457,4 @@ plugins:
14571457
shell: {}
14581458
strategy: {}
14591459
vars: {}
1460-
version: 5.0.0
1460+
version: 5.1.0

changelogs/changelog.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,3 +1012,16 @@ releases:
10121012
name: cp_mgmt_where_used
10131013
namespace: ''
10141014
release_date: '2022-07-10'
1015+
5.1.0:
1016+
changes:
1017+
bugfixes:
1018+
- cp_mgmt_access_rules - split vpn param that can accept either a String or
1019+
list of objects to two
1020+
minor_changes:
1021+
- cp_mgmt_vpn_community_star - new fields added.
1022+
- show command modules - no longer return result of changed=True.
1023+
release_summary: This is release 5.1.0 of ``check_point.mgmt``, released on
1024+
2023-05-18.
1025+
fragments:
1026+
- 5.1.0.yml
1027+
release_date: '2022-07-16'

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: check_point
99
name: mgmt
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: 5.0.0
12+
version: 5.1.0
1313

1414
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1515
readme: README.md

plugins/module_utils/checkpoint.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
__metaclass__ = type
3232

3333
import time
34-
from ansible.errors import AnsibleActionFail
3534
from ansible.module_utils.six import iteritems
3635
from ansible.module_utils.urls import CertificateError
3736
from ansible.module_utils.connection import ConnectionError
@@ -94,11 +93,11 @@
9493

9594

9695
def _fail_json(msg):
97-
"""Replace the AnsibleModule fai;_json here
96+
"""Replace the AnsibleModule fail_json here
9897
:param msg: The message for the failure
9998
:type msg: str
10099
"""
101-
raise AnsibleActionFail(msg)
100+
raise Exception(msg)
102101

103102

104103
def map_params_to_obj(module_params, key_transform):
@@ -532,7 +531,7 @@ def api_command(module, command):
532531

533532
code, response = send_request(connection, version, command, payload)
534533
result = {"changed": True}
535-
534+
536535
if command.startswith("show"):
537536
result['changed'] = False
538537

@@ -679,15 +678,15 @@ def api_call(module, api_call_object):
679678
return result
680679

681680

682-
# returns a generator of the entire rulebase
681+
# returns a generator of the entire rulebase. show_rulebase_identifier_payload can be either package or layer
683682
def get_rulebase_generator(
684683
connection, version, show_rulebase_identifier_payload, show_rulebase_command, rules_amount
685684
):
686685
offset = 0
687686
limit = 100
688687
while True:
689688
payload_for_show_rulebase = {
690-
**show_rulebase_identifier_payload, # package or layer
689+
**show_rulebase_identifier_payload,
691690
"limit": limit,
692691
"offset": offset,
693692
}

plugins/modules/cp_mgmt_add_api_key.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
- name: add-api-key
5454
cp_mgmt_add_api_key:
5555
admin_name: admin
56-
state: present
5756
"""
5857

5958
RETURN = """

plugins/modules/cp_mgmt_add_data_center_object.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
cp_mgmt_add_data_center_object:
102102
data_center_name: vCenter 1
103103
name: VM1 mgmt name
104-
state: present
105104
uri: /Datacenters/VMs/My VM1
106105
"""
107106

plugins/modules/cp_mgmt_add_nat_rule.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
original_source: Any
120120
package: standard
121121
position: 1
122-
state: present
123122
"""
124123

125124
RETURN = """

plugins/modules/cp_mgmt_add_repository_package.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
name: Check_Point_R80_20_JUMBO_HF_Bundle_T118_sk137592_Security_Gateway_and_Standalone_2_6_18_FULL.tgz
5959
path: /home/admin/
6060
source: local
61-
state: present
6261
"""
6362

6463
RETURN = """

plugins/modules/cp_mgmt_add_updatable_object.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
EXAMPLES = """
7575
- name: add-updatable-object
7676
cp_mgmt_add_updatable_object:
77-
state: present
7877
uri: '{{uri}}'
7978
"""
8079

0 commit comments

Comments
 (0)