The diffserv-mode command configures the DiffServ mode of a service chain.
The undo diffserv-mode command restores the default DiffServ mode of a service chain.
By default, the DiffServ mode of a service chain is the uniform configuration mode.
Usage Scenario
You can run this command to configure the DiffServ mode. The DiffServ mode is used to process differentiated services when packets are restored from SF to SFF. By default, the service chain is in uniform mode. If pipe is configured, the service type and priority must be configured.
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 2001:DB8:100:: 64 static 32 [*HUAWEI-segment-routing-ipv6-locator] opcode ::12 end-as [*HUAWEI-segment-routing-ipv6-locator-endas-::12] diffserv-mode uniform
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 2001:DB8:100:: 64 static 32 [*HUAWEI-segment-routing-ipv6-locator] opcode ::12 end-as [*HUAWEI-segment-routing-ipv6-locator-endas-::12] diffserv-mode pipe af1 red