< Home

user (traffic policy rule view)

Function

The user command creates a user in a traffic policy rule.

The undo user command deletes a user configured in a traffic policy rule.

Format

user { username user-name &<1-6> | user-group user-group-name &<1-6> | security-group security-group-name &<1-6> | any }

undo user { username user-name &<1-6> | user-group user-group-name &<1-6> | security-group security-group-name &<1-6> | all }

Parameters

Parameter Description Value
username user-name &<1-6>

Specifies the name of a user.

The user must already exist. A maximum of six users can be created or deleted at a time.

When a user in a non-default authentication domain is specified, the user name must carry "@authentication-domain-name." For example, user1@test indicates user1 in the test authentication domain.

user-group user-group-name &<1-6>

Specifies the name of a user group.

The user group must already exist. A maximum of six user groups can be created or deleted at a time.

A user group name must carry the authentication domain name. For example, /default/group1 indicates group1 in the default authentication domain.

security-group security-group-name &<1-6>

Specifies the name of a security group.

The security group must already exist. A maximum of six security groups can be created or deleted at a time.

When a security group in a non-default authentication domain is specified, the security group name must carry "@authentication-domain-name." For example, secgroup@test indicates security group secgroup in the test authentication domain.

any

Indicates any user.

-
all

Deletes all users from the traffic policy rule.

-

Views

Traffic policy rule view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Set the user group to managers in traffic policy rule traffic_rule.

<sysname> system-view
[sysname] traffic-policy
[sysname-policy-traffic] rule name traffic_rule
[sysname-policy-traffic-rule-traffic_rule] user user-group /default/managers
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic