Could not resolve subtype of [simple type, class DfwFirewallConfiguration]: missing type id property 'resource_type'(Error code: 220)
Running the follow API call: GET https://NSX-Manager-IP/api/v1/infra/settings/firewall/security , the field 'enable_firewall' is set to true.
"enable_firewall": true
NSX 4.2.0.1
The cause is that search indexes are not completed. Because of this the NSX UI mistakenly reports the Disturbed Firewall as off and the rules are "Unknown" or "Deactivated".
Run the following command on each NSX Manager one at a time in admin mode:
start search resync all
This command does not impact the data plane or the NSX infrastructure.
Temporary Workaround: Toggle Auto Draft in Distributed Firewall settings off and back on. This will only temporarily fix the issue, please run the above command to fix it permanently.
This issue does not impact the DFW on the management plane. Hosts will process rules (Deny, Drop or Allow) as normal. There is no data plane impact on the environment, this is purely an NSX UI issue.
The API Call for GET https://NSX-Manager-IP/api/v1/infra/settings/firewall/security , the field 'enable_firewall' ensures the firewall is enabled.