The sr-te policy command creates an SR-MPLS TE Policy and displays the SR-MPLS TE Policy view.
The undo sr-te policy command deletes an SR-MPLS TE Policy.
By default, no SR-MPLS TE Policy is created.
Parameter | Description | Value |
---|---|---|
policy-name |
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. |
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. |
Usage Scenario
SR-MPLS TE Policies are used to direct traffic to traverse an SR-MPLS TE network. Each SR-MPLS TE Policy can have multiple candidate paths with different preferences. You can specify one of the paths to direct traffic forwarding. The candidate path with the highest preference can be selected as an active path.
After the endpoint and color attributes are configured for an SR-MPLS TE Policy, traffic can be steered into the SR-MPLS TE Policy only when the next-hop address and color in the route of the traffic match the two attributes of the SR-MPLS TE Policy, respectively. Each policy can be configured with only one endpoint and color.