te auto-primary-tunnel

Function

The te auto-primary-tunnel command enables a device to collect traffic statistics on tunnels established using PCE path calculation.

The undo te auto-primary-tunnel command disables a device from collecting traffic statistics on tunnels established using PCE path calculation.

By default, the function is disabled.

Format

te auto-primary-tunnel { pce-initiated-lsp | segment-routing }

undo te auto-primary-tunnel { pce-initiated-lsp | segment-routing }

Parameters

Parameter Description Value
pce-initiated-lsp

Indicates an RSVP-TE tunnel whose establishment is triggered by PCEP.

-

segment-routing

Indicates an SR-MPLS TE tunnel whose establishment is triggered by PCEP.

-

Views

MPLS traffic statistics collection view, MPLS traffic statistics view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

PCEP-triggered automatic tunnels are not manually configured. To view traffic statistics on such tunnels, run the te auto-primary-tunnel command. PCEP can trigger the establishment of RSVP-TE and SR-MPLS TE tunnels:

  • To collect traffic statistics on RSVP-TE tunnels, run the te auto-primary-tunnel pce-initiated-lsp command.
  • To collect traffic statistics on SR-MPLS TE tunnels, run the te auto-primary-tunnel segment-routing command.

Prerequisites

MPLS has been enabled globally using the MPLS command.

Example

# Collect traffic statistics on SR-MPLS TE tunnels.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] mpls traffic-statistics
[*HUAWEI-mpls-traffic-statistics] te auto-primary-tunnel segment-routing
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >