< Home

rule rename (PCP policy view)

Function

The rule rename command allows you to rename a PCP policy rule.

Format

rule rename old-name new-name

Parameters

Parameter Description Value
old-name Specifies the name of a policy rule to be renamed. The policy rule must exist.
new-name Specifies the new name of a policy rule. The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). The name cannot contain any question marks (?), or quotation marks (").

Views

PCP policy view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Change the PCP policy rule name from abc to abc_1.

<sysname> system-view
[sysname] pcp-policy
[sysname-policy-pcp] rule rename abc abc_1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >