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

nsxt_policy_security_policy.py #349

Open bannov opened 3 years ago

bannov commented 3 years ago

nsxt_policy_security_policy.py has an element in rules section called "service_entries"

this field is not supported in the NSX-T 2.5.1 API Rule Schema

the error from ansible module : Received 400 from NSX Manager. Please try again. Json de-serialization error: property service_entries is unrecognized.",

laidbackware commented 3 years ago

@bannov this field is supported by NSX-T 3.0+ . Are you able to remove this element from your rules? https://vdc-download.vmware.com/vmwb-repository/dcr-public/d9f0d8ce-b56e-45fa-9d32-ad9b95baa071/bd4b6353-6bbf-45ca-b7ef-3fa6c4905e94/api_includes/types_Rule.html

bannov commented 3 years ago

@laidbackware I do not use this element in my rules, but it is generated automatically as service_entries: null as defined in policy_resource_specs.

and is thus part of the Request Body and as result property service_entries is unrecognized by NSX manager.

sure I have fount the walkaround.