The segment-list command configures a segment list to be referenced by an SRv6 TE Policy's candidate path.
The undo segment-list command deletes the segment list referenced by an SRv6 TE Policy's candidate path.
By default, no segment list is referenced by an SRv6 TE Policy's candidate path.
Parameter | Description | Value |
---|---|---|
list-name |
Specifies the name of the segment list. |
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. |
weight weight-value |
Specifies the weight of the segment list. If the weight configured for a segment list in the candidate path is less than the average weight, the segment list does not forward traffic. The average weight is calculated using the following formula: Average weight = Sum of weights of all segment lists of a candidate path/Maximum number of channels supported for load balancing. For example, if a device supports m links under load balancing, the average weight of n segment lists in the candidate path is (weight 1+weight 2+......weight n)/m = x. Segment lists with the weight less than x do not forward traffic. Note that m is the number of load balancing entries supported by the device, not the total number of segment lists. For example, if there are four segment lists, the device supports 16 load balancing routes, the weights are 100, 100, 100, and 1, and the average weight is (100+100+100+1)/16, the weight of the last segment list is lower than the average value, and traffic is not forwarded, traffic is balanced among the other three segment lists. |
The value is an integer that ranges from 0 to 4294967295. The default value is 1. |
path-mtu mtu-value |
Specifies the MTU of the segment list. |
The value is an integer that ranges from 1280 to 9600. |
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] srv6-te policy p2 endpoint 2001:DB8:10::10 color 100 [*HUAWEI-segment-routing-ipv6-policy-p2] candidate-path preference 200 [*HUAWEI-segment-routing-ipv6-policy-p2-path] segment-list s1 weight 1 path-mtu 1280