ansible-for-nsxt icon indicating copy to clipboard operation
ansible-for-nsxt copied to clipboard

nsxt_policy_security_policy.py

Open bannov opened this issue 3 years ago • 2 comments

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.",

bannov avatar Mar 11 '21 11:03 bannov

@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

laidbackware avatar Mar 20 '21 09:03 laidbackware

@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.

bannov avatar Mar 20 '21 10:03 bannov