How can an export-policy rule be moved to a higher (or lower) priority
Applies to
- ONTAP 9
- NFS
Answer
- Rules in an export-policy take effect on a first match basis
- This means that lower numbered rules in the policy take precedence over higher numbered ones
- To increase the priority of an existing rule, you can use the export-policy rule setindex command to decrease the ruleindex to less than or equal to those rules which it should take precedence over
- If the new ruleindex is already used by an existing rule, the index of the existing rule will be increased by one to make room for the rule having its priority changed, as may any intervening rules
- The command can also be used to reduce the priority of a rule, by making the new ruleindex higher
- Example command:
export-policy rule setindex -vserver svm1 -policy policy1 -ruleindex 99 -newruleindex 4
Additional Information
additionalInformation_text
