| Parameter | Description | Value |
|---|---|---|
rule-name1 |
Indicates the name of the quota control policy to be moved. |
The value must be the name of an existing quota control policy. |
after |
Moves rule-name1 after rule-name2. |
- |
before |
Moves rule-name1 before rule-name2. |
- |
rule-name2 |
Indicates the name of the quota control policy that is as reference. |
The value must be the name of an existing quota control policy. |
up |
Move up a rule. |
- |
down |
Move down a rule. |
- |
top |
Move a rule to the top. |
- |
bottom |
Move a rule to the bottom (before the default policy). |
- |
The position of a quota control policy determines its priority. The policy on the top has a higher priority than others. A policy with a higher priority is preferentially matched.
In normal cases, the earlier a policy is configured, the higher the row it is in, and a higher priority it has.
You can use this command to adjust the position of a policy so as to adjust its priority.
# Move quota_rule_2 before quota_rule_1 so that quota_rule_2 has a higher priority than quota_rule_1.
<sysname> system-view [sysname] quota-policy [sysname-policy-quota] rule move quota_rule_2 before quota_rule_1
# Move quota_rule_2 up.
<sysname> system-view [sysname] quota-policy [sysname-policy-quota] rule move quota_rule_2 up
# Move quota_rule_2 down.
<sysname> system-view [sysname] quota-policy [sysname-policy-quota] rule move quota_rule_2 down
# Move quota_rule_2 to the top.
<sysname> system-view [sysname] quota-policy [sysname-policy-quota] rule move quota_rule_2 top
# Move quota_rule_2 to the bottom.
<sysname> system-view [sysname] quota-policy [sysname-policy-quota] rule move quota_rule_2 bottom