network-slice color-mapping

Function

The network-slice color-mapping command is used to enter the view of mapping between a network slice instance and a color.

The undo network-slice color-mapping command is used to delete a network slice instance and a color mapping view.

By default, no network slice instance mapping view is created.

Format

network-slice color-mapping

undo network-slice color-mapping

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
netslicing write

Usage Guidelines

Usage Scenario

When a slice interface needs to be selected on the backbone network for VPN data forwarding, the device searches for the corresponding slice ID based on the color attribute in BGP route attributes, and then forwards the traffic transmitted over the BGP route through the interface configured with the slice ID. In this case, you can run the network-slice color-mapping command to enter or create the corresponding view, and then configure the mapping between the color and network slice instance.

Example

# Enter the view for the mapping between the network slice instance and the color.
<HUAWEI> system-view
[~HUAWEI] network-slice color-mapping
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >