CheckPointSW / CheckPointAnsibleMgmtCollection

This Ansible collection provides control over a Check Point Management server using Check Point's web-services APIs.
https://galaxy.ansible.com/check_point/mgmt
Apache License 2.0
40 stars 30 forks source link

Is there a way to always add new access_rule or nat_rule to the bottom of the policy table? #77

Closed shermannws closed 2 years ago

shermannws commented 2 years ago

I am looking for a way to add access_rule (using cp_mgmt_access_rule and cp_mgmt_add_nat_rule) to the bottom of the policy table instead of to the top.

Adding to the top is easy as I could specify 1 to the position argument. However, is there an advised way to do so when adding to the bottom?

Thank you so much in advance!

chkp-edenbr commented 2 years ago

Hi,

The position argument can also receive the strings "top" or "bottom".

Regards, Eden

shermannws commented 2 years ago

That's amazing! Thank you! @chkp-edenbr

shermannws commented 2 years ago

Hi @chkp-edenbr , is seems like the feature to support 'top' and 'bottom' has yet to be implemented. Please see source code, lines 390 - 407.

Are there plans on releasing this feature?

chkp-edenbr commented 2 years ago

Hi,

We will release this feature in a future version.

Thanks, Eden

chkp-edenbr commented 2 years ago

Hi,

Support for "top" and "bottom" values for position parameter now available in new release v3.1.0.

Regards, Eden