< Home

lsp-type

Function

Using the lsp-type command, you can configure the LSP test type.

Using the undo lsp-type command, you can cancel configuring the LSP test type.

By the default, the value of lsp-type is ipv4.

Format

lsp-type { ipv4 | te | ipv4-vpn }

undo lsp-type

Parameters

Parameter Description Value
ipv4 Sets the test type to IPv4 LSP ping/trace/jitter. -
te Sets the type to LSP ping/trace/jitter of the TE tunnel. -
ipv4-vpn

Sets the LSP test type to IPv4 L3VPN.

-

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The lsp-type command can be used to configure the LSP test type of an NQA test instance to detect an LDP or a TE tunnel.

  • If ipv4 is configured, the NQA test instance is used to detect the connectivity of a specified LDP LSP. The destination address of the test instance is configured using the destination-address command.
  • If te is configured, the NQA test instance is used to detect the connectivity of a specified TE tunnel. The destination address of the test instance is configured using the lsp-tetunnel command.
  • If the ipv4-vpn parameter is set, the NQA test case is used to test LSPs on a BGP-based L3VPN network.
    • To test a primary LSP on a BGP-based L3VPN network, specify the destination address using the destination-address lsp-masklen masklen command.
    • To test a primary LSP on a BGP-based L3VPN network, specify the destination address using the destination-address lsp-masklen masklen vpn-frr-path command.

Prerequisites

  • If the LSP test type is set to IPv4, the NQA test instance type must be set to LSP ping, LSP trace, or LSP jitter.
  • If the LSP test type is set to TE, the NQA test instance type must be set to LSP ping, LSP trace, or LSP jitter.
  • If the LSP test type is set to IPv4 L3VPN, the NQA test instance type must be set to LSP ping.

Precautions

The type of an LSP test that is running cannot be changed.

After the lsp-type command is configured, the destination-address, lsp-tetunnel, and lsp-version commands cannot be configured.

Example

# Set the type of the test named user test to Ipv4 LSP ping.

<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type lspping
[HUAWEI-nqa-user-test] lsp-type ipv4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >