policy (LSP trace test instance)

Function

The policy command configures an NQA LSP trace test instance.

The undo policy command deletes an NQA LSP trace test instance.

By default, no NQA LSP test instance is configured.

Format

policy { policy-name policyname | endpoint-ip endpointip color colorid | binding-sid bsid }

undo policy

undo policy { policy-name policyname | endpoint-ip endpointip color colorid | binding-sid bsid }

Parameters

Parameter Description Value
policy-name policyname

Specifies the name of an SR-MPLS TE policy.

The value is a string of 1 to 31 case-sensitive characters. It cannot contain spaces.

endpoint-ip endpointip

Specifies the endpoint IP address of an SR-MPLS TE policy.

The value is in dotted decimal notation.

color colorid

Specifies the color ID of an SR-MPLS TE policy.

The value is an integer ranging from 0 to 4294967295.

binding-sid bsid

Specifies the ID of a segment bound to an SR-MPLS TE policy.

The value is an integer ranging from 16 to 1048575.

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

An LSP tracert test instance detects faulty nodes on an SR-MPLS TE Policy tunnel. You can perform the following operation as required:

  • To configure the name of an SR-MPLS TE Policy for an NQA LSP test instance, run the policy policy-name command.
  • To configure the ID of a segment bound to an SR-MPLS TE Policy for an NQA LSP test instance, run the policy binding-sid command.
  • To configure an endpoint IP address and color ID for an NQA LSP test instance, run the policy endpoint-ip color command.

Prerequisites

The lsp-type srte-policy command has been run.

Example

# Set a color ID to 12 for a test instance named user test.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type lsptrace
[*HUAWEI-nqa-user-test] lsp-type srte-policy
[*HUAWEI-nqa-user-test] policy endpoint-ip 10.1.1.2 color 12
# Set a binding segment ID to 22 for a test instance named user test.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type lsptrace
[*HUAWEI-nqa-user-test] lsp-type srte-policy
[*HUAWEI-nqa-user-test] policy binding-sid 22
# Set the name of an SR-MPLS TE Policy to p1 for a test instance named user test.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type lsptrace
[*HUAWEI-nqa-user-test] lsp-type srte-policy
[*HUAWEI-nqa-user-test] policy policy-name p1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >