diffserv-mode (SRv6 locator End-AS view)

Function

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.

Format

diffserv-mode pipe service-class color

diffserv-mode uniform

undo diffserv-mode pipe [ service-class color ]

undo diffserv-mode uniform

Parameters

Parameter Description Value
service-class

Specifies a service type.

The value is an enumerated type.

  • be
  • af1
  • af2
  • af3
  • af4
  • ef
  • cs6
  • cs7
color

Specifies a priority color.

The value is an enumerated type.

  • green
  • yellow
  • red
uniform

Enables the uniform mode.

-

pipe

Enables the pipe mode.

-

Views

SRv6 locator End-AS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

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.

Example

# Set the DiffServ mode of the SRv6 service chain to 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 uniform
# Set the DiffServ mode of the SRv6 service chain to pipe, service type to af1, and color to red.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >