< Home

rule copy (Quota Control Policy View)

Function

The rule copy command copies a quota control policy.

Format

rule copy rule-name new-rule-name

Parameters

Parameter Description Value
rule-name Indicates the name of the quota control policy to be copied. The value must be the name of an existing quota control policy.
new-rule-name Indicates the name of the quota control policy generated through the copying operation. The value is a case-sensitive 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"). Question marks (?), and quotations marks (") are not supported.

Views

Quota control policy view

Default Level

2: Configuration level

Usage Guidelines

To create a quota control policy that is similar to an existing one, you can create it by copying the existing one.

Example

# Copy the quota control policy quota_rule and name the generated policy quota_rule_1.

<sysname> system-view
[sysname] quota-policy
[sysname-policy-quota] rule copy quota_rule quota_rule_1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >