display sr-te policy

Function

The display sr-te policy command displays detailed SR-MPLS TE Policy information.

The display sr-te policy brief command displays brief SR-MPLS TE Policy information.

Format

display sr-te policy [ endpoint ipv4-address color color-value | policy-name name-value | binding-sid binding-sid ]

display sr-te policy brief

Parameters

Parameter Description Value
endpoint ipv4-address

Specifies the endpoint of an SR-MPLS TE Policy.

The value is in dotted decimal notation.

color color-value

Specifies the color value of an SR-MPLS TE Policy.

The value is an integer ranging from 0 to 4294967295.

policy-name name-value

Specifies the name of an SR-MPLS TE Policy.

The value is a string of 1 to 31 case-sensitive characters. When double quotation marks are used around the string, spaces are allowed in the string.

binding-sid binding-sid

Specifies a binding SID.

The value is an integer ranging from 16 to 1048575.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
srpolicy read

Usage Guidelines

Usage Scenario

The display sr-te policy command displays all SR-MPLS TE Policy information.

The display sr-te policy brief command displays brief SR-MPLS TE Policy information.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display details about a specified SR-MPLS TE Policy.
<HUAWEI> display sr-te policy policy-name 1
PolicyName : 1
Endpoint             : 1.1.1.1                        Color                : 100
TunnelId             : 1                              TunnelType           : SR-TE Policy
Binding SID          : -                              MTU                  : -
Policy State         : Up                             State Change Time    : 2020-07-31 02:22:31
Admin State          : Up                             Traffic Statistics   : Disable
BFD                  : Disable                        Backup Hot-Standby   : Disable
DiffServ-Mode        : -
Candidate-path Count : 1

Candidate-path Preference: 100
Path State           : Active                         Path Type            : Primary
Protocol-Origin      : Configuration(30)              Originator           : 0, 0.0.0.0
Discriminator        : 100                            Binding SID          : -
GroupId              : 1                              Policy Name          : 1
Template ID          : -
Segment-List Count   : 1
 Segment-List        : 1
  Segment-List ID    : 1                              XcIndex              : 2000001
  List State         : Up                             BFD State            : -
  EXP                : -                              TTL                  : -
  DeleteTimerRemain  : -                              Weight               : 1
  Label : 100
# Display brief SR-MPLS TE Policy information.
<HUAWEI> display sr-te policy brief
PolicyName : 1
Endpoint             : 1.1.1.1                        Color                : 1
TunnelId             : 1                              Binding SID          : 5000                          
Policy State         : Up                             State Change Time    : 2021-08-26 08:36:21
Candidate-path Count : 2

PolicyName : 2
Endpoint             : 1.1.1.1                        Color                : 2
TunnelId             : 2                              Binding SID          : 1500                          
Policy State         : Up                             State Change Time    : 2021-08-28 10:18:15
Candidate-path Count : 3

PolicyName : 3
Endpoint             : 1.1.1.1                        Color                : 3
TunnelId             : 3                              Binding SID          : -                             
Policy State         : Up                             State Change Time    : 2021-08-30 12:48:25
Candidate-path Count : 1

PolicyName : 4
Endpoint             : 1.1.1.1                        Color                : 4
TunnelId             : 4                              Binding SID          : 456                           
Policy State         : Up                             State Change Time    : 2021-08-31 06:38:11
Candidate-path Count : 1

PolicyName : 5
Endpoint             : 1.1.1.1                        Color                : 5
TunnelId             : 5                              Binding SID          : -                             
Policy State         : Up                             State Change Time    : 2021-08-31 06:38:11
Candidate-path Count : 1
Table 1 Description of the display sr-te policy command output
Item Description
PolicyName

Name of an SR-MPLS TE Policy.

Endpoint

Endpoint of an SR-MPLS TE Policy.

Color

Color value configured for an SR-MPLS TE Policy.

TunnelId

Tunnel ID of an SR-MPLS TE Policy.

TunnelType

Tunnel type of an SR-MPLS TE Policy.

Policy State

SR-MPLS TE Policy state:

  • Up.
  • Down (Overrun).
  • Down (Init).
  • Down (BFD down).
  • Down (Shutdown).
  • Down (Delay Delete).
Policy Name

Name of an SR-MPLS TE Policy. If a candidate path of the SR-MPLS TE Policy is delivered through BGP, the Policy Name field may not be carried. In this case, no value is displayed.

Binding SID

Binding SID of an SR-MPLS TE Policy.

MTU

MTU configured for an SR-MPLS TE Policy. If an MTU is not configured, no information is displayed.

State Change Time

State change time of an SR-MPLS TE Policy.

Admin State

Whether the shutdown command is run for an SR-MPLS TE Policy:

  • Down: The command is run.
  • Up: The command is not run.
Traffic Statistics

Whether traffic statistics collection is enabled for an SR-MPLS TE Policy.

BFD

Whether BFD is enabled for an SR-MPLS TE Policy.

BFD State

SBFD state:

  • Up.
  • Down.
  • Unknown.
  • Overrun: The number of SBFD sessions exceeds the specified threshold.
  • Admin Down.
  • Select Board Fail.
  • Path Inactive.
  • -: SBFD is not configured.
Backup Hot-Standby

Whether HSB is enabled for an SR-MPLS TE Policy.

DiffServ-Mode

DiffServ mode configured for an SR-MPLS TE Policy.

Candidate-path Count

Number of candidate paths configured for an SR-MPLS TE Policy.

Candidate-path Preference

Preference configured for an SR-MPLS TE Policy's candidate path.

Path State

Status of an SR-MPLS TE Policy's primary path:

  • Active.
  • Inactive (Valid).
  • Inactive (Invalid).
  • Inactive (Wait BFD).
  • Inactive (BFD Down).
  • Inactive (Delay Delete).
Path Type

Type of an SR-MPLS TE Policy's candidate path:

  • Primary.
  • Backup.

    If the field has no value, the corresponding path is not preferentially used.

Protocol-Origin

Protocol origin of an SR-MPLS TE Policy's primary path:

  • PECP(10).
  • BGP(20).
  • Configuration(30).
Originator

Originator of an SR-MPLS TE Policy's primary candidate path. The value is in the <ASN, node-address> format, where ASN indicates an AS number.

  • The value of ASN in static configuration scenarios is 0. For a BGP-delivered SR-MPLS TE Policy, the ASN is the AS number carried in the BGP TLV.
  • The value of node-address in static configuration scenarios is fixed at 0.0.0.0. For a BGP-delivered SR-MPLS TE Policy, the node-address is the router ID of the BGP peer.
Discriminator

Discriminator of an SR-MPLS TE Policy's primary candidate path. In scenarios where candidate paths are statically configured, the discriminator value is the same as the preference value. For a BGP-delivered SR-MPLS TE Policy, the discriminator value is the discriminator carried in the BGP TLV.

GroupId

Group ID assigned to an SR-MPLS TE Policy's primary candidate path.

Template ID

Template ID for SR-MPLS TE Policies.

Segment-List Count

Number of valid segment lists configured for an SR-MPLS TE Policy's primary candidate path.

Segment-List

Name of a segment list configured for an SR-MPLS TE Policy's primary path.

Segment-List ID

ID of a segment list configured for an SR-MPLS TE Policy's candidate path.

XcIndex

Forwarding path index assigned to a segment list configured for an SR-MPLS TE Policy's candidate path. This field is available only to the segment list of a preferentially selected path.

List State

State of a segment list configured for an SR-MPLS TE Policy's primary candidate path:

  • Up.
  • Down (Valid).
  • Down (Invalid).
  • Down (Wait BFD).
  • Down (BFD Down).
  • Down (Delay Delete).
  • Down (Overrun).
EXP

EXP value of a segment list.

TTL

TTL of a segment list.

DeleteTimerRemain

Time left before the configured deletion delay expires in a scenario where the segment list of an SR-MPLS TE Policy's candidate path is deleted.

Weight

Weight value of a segment list.

Label

Label stack configured for the segment list of an SR-MPLS TE Policy's primary path.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >