< Home

time-range (PBR rule view)

Function

The time-range command configures a time range during which a PBR rule is applied.

The undo time-range command deletes the configuration.

Format

time-range time-range-name

undo time-range

Parameters

Parameter Description Value
time-range-name

Specifies the name of a time range.

The value must be the name of an existing time range.

Views

PBR rule view

Default Level

2: Configuration level

Usage Guidelines

Policy rules can be used to divert traffic within the effective duration of PBR.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >