< Home

rule move (PCP policy view)

Function

The rule move command allows you to move a PCP policy rule so that the priority of the PCP policy rule changes.

Format

rule move rule-name1 { { after | before } rule-name2 | up | after | top | bottom }

Parameters

Parameter Description Value
rule-name1 Specifies the name of a policy rule to be moved. The policy rule must exist.
after Moves rule-name1 after rule-name2. -
before Moves rule-name1 before rule-name2. -
rule-name2 Specifies the name of a reference policy rule. The policy rule must exist.
up Moves the rule before the upper one. -
down Moves the rule after the lower one. -
top Moves the rule to the top. -
bottom Move a rule to the bottom ( before the default policy ) . -

Views

PCP policy view

Default Level

2: Configuration level

Usage Guidelines

The position of a PCP policy rule determines the priority of the rule. PCP policy rules are arranged in descending order by priority. The system matches traffic with policy rules in descending order by priority.

By default, an earlier configured traffic policy rule has a higher priority.

An administrator can run the rule move command to move a policy rule to change the rule priority.

Example

# Move a rule named pcp_rule_2 before a rule named pcp_rule_1 so that pcp_rule_2 has a higher priority than pcp_rule_1.

<sysname> system-view
[sysname] pcp-policy
[sysname-policy-pcp] rule move pcp_rule_2 before pcp_rule_1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >