route-policy-change notify-delay

Function

The route-policy-change notify-delay command sets the delay before the Route Management (RM) module to notify each protocol of applying a new policy after the original route-policy changes.

The undo route-policy-change notify-delay command restores the default setting.

By default, this command is not configured, and the delay time is 0s.

Format

route-policy-change notify-delay delay-time

undo route-policy-change notify-delay

Parameters

Parameter Description Value
delay-time

Specifies the delay for applying a new policy after the original route-policy changes.

The value is an integer ranging from 1 to 180, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a scenario that a used route-policy is being modified, after commands are run to modify the route-policy, the RM module immediately notifies the protocols of re-applying the route-policy. However, you must run several commands to modify the route-policy. To prevent the protocols from re-applying the route-policy being modified, you can run one of those commands, and then run the route-policy-change notify-delay delay-time command to configure the delay time when the RM module notifies the protocols. In this way, the protocols can apply the completely modified route-policy.

Configuration Impact

After running the route-policy-change notify-delay command, the RM module sets a delay timer. After the timer expires, the RM module notifies the protocols of re-applying the route-policy.

  • If the configuration of the route-policy changes again during the delay time, the RM module resets the timer.

  • If the modified route-policy is used by BGP, in the delay time specified by delay-time:

    • If an import policy is configured to filter the routes learned from a peer or peer group using the peer route-policy import command, BGP applies the import policy immediately when the refresh bgp all command is run.
    • If an export policy is configured to filter the routes to be sent to a peer or peer group using the peer route-policy export command, BGP does not apply the export policy until the configured delay expires although the refresh bgp all command is run.

Example

# Set the delay for the RM module to notify each protocol of applying a new policy after the original route-policy changes.

<sysname> system-view
[sysname] route-policy-change notify-delay 20 
Related Topics
route-policy
ip ip-prefix
ip ipv6-prefix

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.