< Home

add tag (flow probe policy rule view)

Function

The add tag adds a tag to a policy rule.

The undo add tag commands removes a tag from a policy rule.

Format

add tag tag-name

undo add tag tag-name

Parameters

Parameter Description Value
tag-name

Species the name of a tag.

The specified tag must already exist.

Views

Flow probe policy rule view

Default Level

2: Configuration level

Usage Guidelines

The add tag command adds a tag to a flow probe policy rule. Before running the add tag command, run the tag name command to create a tag. After the add tag command, run the display tag command to check whether the tag is successfully added to the policy rule.

You can run the undo add tag command to delete a tag only after all policies have cancelled their reference of this tag.

Example

# Create a tag named Marketing.

<sysname> system-view
[sysname] tag name Marketing

# Add tag Marketing to flow probe policy rule test.

<sysname> system-view
[sysname] flow-probe-policy
[sysname-policy-probe] rule name policy_probe
[sysname-policy-probe-rule-policy_probe] add tag Marketing
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >