< Home

rule copy (PBR view)

Function

The rule copy command clones existing PBR rules.

Format

rule copy rule-name new-rule-name

Parameters

Parameter Description Value
rule-name

Specifies the name of the PBR rule to be cloned.

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

new-rule-name

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

You can clone a PBR rule and modify it to create a new one.

Example

# Clone a new PBR rule def from the existing PBR rule abc.

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