The network-slice command references a network slice instance for the candidate path of an SRv6 TE Policy.
The undo network-slice command deletes network slice instance reference configuration.
By default, an SRv6 TE Policy's candidate path does not reference a network slice instance.
Usage Scenario
After configuring a network slice instance in the system view, you can run the network-slice command in the candidate path view to reference the network slice instance. This enables traffic to be forwarded through the network slice instance if the candidate path is preferentially selected.
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] srv6-te policy p2 endpoint 2001:DB8:1::10 color 100 [*HUAWEI-segment-routing-ipv6-policy-p2] candidate-path preference 200 [*HUAWEI-segment-routing-ipv6-policy-p2-path] network-slice 100 data-plane