vmware / ansible-for-nsxt

Ansible delivers simple IT automation that ends repetitive tasks and frees up DevOps teams for more strategic work. This project is to enable this automation for NSX-T installation.
Other
171 stars 145 forks source link

Add option to remove unscpecified rules when updating a Security Policy #468

Open lakicv opened 1 year ago

lakicv commented 1 year ago

Is your feature request related to a problem? Please describe.

I would like to update my Secuirty Policies without having to separately go through the unwanted rules and deleting them manualy.

Describe the solution you'd like

Similar to the nsxt_vm_tags module there could be a option _remove_otherrules that when set to True removes the rules which were not specified for the Security Policy.

Describe alternatives you've considered

No response

Additional context

No response

vhrte commented 6 months ago

we have this requirement as well. is there anyway to implement this or available workaround ? if there are 4 rules previously created and now it is modified to only become 2 rules, currently it doesn't remove rule 3 and and rule 4 from the configuration