I am concerned more about the actual policy ID then about the order. However I am happy to follow some best practices in here. I am automating policy provisioning and I want to make sure that I use a new policy ID that is the highest currently used policyID +1.
The background is that I do have policies configured for given vdom in inconsistent way...
For example just a part of the output from show firewall policy
Now when I create a new policy I want to be able to find the highest used policyID on that device/vdom and add 1 and use it for configuring the policy.
Is there a way to know the highest used policy ID?
Or maybe another way to handle it?
Maybe I can find in a simpler was the first available policy ID?