color network-slice

Function

The color network-slice command configures a mapping between a network slice instance and a color.

The undo color network-slice command cancels the mapping between a network slice instance and a color.

By default, the mapping between network slice instances and colors is not configured.

Format

color index network-slice sliceId

undo color index network-slice sliceId

Parameters

Parameter Description Value
index

Specifies the color value.

The value is an integer that ranges from 0 to 4294967295.

sliceId

Specifies the ID of a network slice instance.

The value is an integer ranging from 1 to 4294967295.

Views

Network slice color mapping view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
netslicing write

Usage Guidelines

Usage Scenario

The device generates the mapping between the color and the forwarding plane color and the mapping between the forwarding plane color and the network slice based on the mapping between the color and the network slice.

The Color extended community attribute is added to VPN routes based on an import or export policy.

The device generates the mapping between routes and the color of the forwarding plane based on the mapping between the color and the color of the forwarding plane, adds the color of the forwarding plane to the prefix, and delivers the prefix to the forwarding module.

The forwarding plane obtains network slices based on the color of the forwarding plane. When receiving a private network data packet, the forwarding plane adds a Hop-by-Hop extension header to the packet based on the private network prefix, searches for the locator route based on the VPN SID, obtains the outbound interface of the route, and searches for the sub-interface corresponding to the network slice on the outbound interface, then, the packets are forwarded through the sub-interface.

Example

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