The policy command configures an NQA LSP ping test instance.
The undo policy command deletes an NQA LSP ping test instance.
By default, no NQA LSP test instance is configured.
| 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. |
Usage Scenario
An LSP ping test instance monitors the connectivity of an SR-MPLS TE policy tunnel. You can perform the following operation as required:
Prerequisites
The lsp-type srte-policy command has been run.
<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type lspping [*HUAWEI-nqa-user-test] lsp-type srte-policy [*HUAWEI-nqa-user-test] policy endpoint-ip 10.1.1.2 color 12
<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type lspping [*HUAWEI-nqa-user-test] lsp-type srte-policy [*HUAWEI-nqa-user-test] policy binding-sid 22
<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type lspping [*HUAWEI-nqa-user-test] lsp-type srte-policy [*HUAWEI-nqa-user-test] policy policy-name p1