< Home

rule copy (security policy view)

Function

The rule copy command clones a security policy rule.

Format

rule copy rule-name new-rule-name

Parameters

Parameter Description Value
rule-name Specifies the name of the security policy rule to be cloned. The specified security policy rule must exist.
new-rule-name Specifies the name of the new security 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

Security policy view

Default Level

2: Configuration level

Usage Guidelines

You can clone a security policy rule to create a similar security policy rule.

Example

# Clone security policy rule policy_sec and name the new rule policy_sec_1.

<sysname> system-view
[sysname] security-policy
[sysname-policy-security] rule copy policy_sec policy_sec_1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >