The rule name command creates a PBR
rule and displays the PBR rule view.
The undo rule
name command deletes a PBR rule.
Format
rulenamerule-name
undo rule { namerule-name | all }
Parameters
Parameter
Description
Value
rule-name
Specifies the name of a PBR 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 (?), quotation marks ("), or hyphens (-).
all
Indicates all PBR rules.
-
Views
PBR view
Default Level
2: Configuration level
Usage Guidelines
None
Example
# Create PBR rule abc.
<sysname> system-view
[sysname] policy-based-route
[sysname-policy-pbr] rule name abc
[sysname-policy-pbr-rule-abc]