Skip to main content
NetApp Knowledge Base

How can an export-policy rule be moved to a higher (or lower) priority

Views:
21
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

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
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.