The time-range command configures a time range during which a PBR rule is applied.
The undo time-range command deletes the configuration.
time-range time-range-name
undo time-range
Specifies the name of a time range.
The value must be the name of an existing time range.
PBR rule view
2: Configuration level
Policy rules can be used to divert traffic within the effective duration of PBR.
# Set time range weekend as a matching condition of PBR rule abc.
<sysname> system-view [sysname] policy-based-route [sysname-policy-pbr] rule name abc [sysname-policy-pbr-rule-abc] time-range weekend