VMware NSX versions prior to 4.2.0
The issue is resolved in NSX 4.2.0
Workaround 1
1. In UI, clone the desired policy which puts the new cloned policy at the top of the rule list
2. Move the desired rule down to the desired place in the order
3. Publish
4. Delete the cloned policy
5. Publish
Workaround 2
1. Run the following API to regenerate sequence numbers with air-gap.
POST - https://<NSX-Manager>/policy/api/v1/infra/domains/<domain-id>/security-policies/<security-policy-id>?action=revise&operation=insert_top
{
}
Example:
POST - https://<NSX-Manager>/policy/api/v1/infra/domains/default/security-policies/TEST_POLICY?action=revise&operation=insert_top
{
}
2. Login to NSX Manager and Navigate to Security -> Distributed firewall page. Verify whether the policy order is proper or not.
3. The API mentioned in Step 1 will insert a blank policy on top of the firewall configuration. The customer can remove it from the UI and publish the configuration.