< Home

rule rename (PBR view)

Function

The rule rename command renames a PBR rule.

Format

rule rename old-name new-name

Parameters

Parameter Description Value
old-name

Specifies the original name of a PBR rule.

The value must be the name of an existing PBR rule.

new-name

Specifies the new name of the PBR 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

PBR view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Rename PBR rule abc as def.

<sysname> system-view
[sysname] policy-based-route
[sysname-policy-pbr] rule rename abc def
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >