network-slice (SRv6 candidate path view)

Function

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.

Format

network-slice slice-id data-plane

undo network-slice slice-id [ data-plane ]

Parameters

Parameter Description Value
slice-id

Specifies a network slice ID.

The value is an integer ranging from 1 to 4294967295.

data-plane

Specifies a data plane.

-

Views

SRv6 candidate path view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

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.

Example

# Configure the candidate path to reference the network slice instance.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >