limit-log-interval

Function

The limit-log-interval command configures the interval for displaying logs when the number of routes exceeds the threshold.

The undo limit-log-interval command restores the default setting.

By default, the interval for displaying logs when the number of routes exceeds the threshold is 5 seconds.

Format

limit-log-interval interval

undo limit-log-interval

Parameters

Parameter Description Value
interval Specifies the interval for displaying logs when the number of routes exceeds the threshold. An integer ranging from 1 to 60, in seconds.

Views

VPN instance view, VPN instance IPv4 address family view or VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the routes or prefixes in the IPv4 or IPv6 address family of a VPN instance reach the maximum, the system will generate logs at intervals (defaulting to 5 seconds). To prevent logs from being displayed frequently, run the limit-log-interval command to prolong the interval of log generation.

The maximum number of routes or prefixes that the IPv4 or IPv6 address family of a VPN instance supports can be configured using the routing-table limit or prefix limit command.

Prerequisites

The route-distinguisher command is run to configure an RD for the VPN instance enabled with the IPv4 or IPv6 address family.

Precautions

If a log is generated to record the event that routes or prefixes in the IPv4 or IPv6 address family of a VPN instance reach the maximum, no more routes can be added to the routing table of the IPv4 or IPv6 address family of the VPN instance. Instead, the routes will be discarded.

Example

# Set the interval for displaying logs to 8 seconds when the number of routes in the IPv4 address family of the VPN instance named vpn1 exceeds the threshold.

<sysname> system-view
[sysname] ip vpn-instance vpn1
[sysname-vpn-instance-vpn1] ipv4-family
[sysname-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1
[sysname-vpn-instance-vpn1-af-ipv4] limit-log-interval 8
Related Topics
routing-table limit
prefix limit

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