< Home

parent-group (security policy rule view)

Function

The parent-group command adds a policy rule to a policy group.

The undo parent-group command removes a policy rule from a policy group.

Format

parent-group group-name

undo parent-group

Parameters

Parameter Description Value
group-name Specifies the name of a policy group. The value must be the name of an existing policy group.

Views

Security policy rule view

Default Level

2: Configuration level

Usage Guidelines

After you add a policy rule to a policy group, the policy rule is placed behind all policy rules in the policy group.

When you remove a policy rule from a policy group:

  • If the policy rule resides in front of all policy rules in the policy group, this policy rule is placed in front of the policy group after it is removed from the policy group.
  • If the policy rule resides at a back position, this policy rule is placed behind the policy group after it is removed from the policy group.

Example

# Add policy rule rule1 to policy group group1.

<sysname> system-view
[sysname] security-policy
[sysname-policy-security] rule name rule1
[sysname-policy-security-rule-rule1] parent-group group1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >