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.
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.