The encapsulation-mode command configures an encapsulation mode for an SRv6 TE Policy.
The undo encapsulation-mode command deletes the encapsulation mode of an SRv6 TE Policy.
By default, no encapsulation mode is configured for an SRv6 TE Policy.
Usage Scenario
When forwarded traffic enters an SRv6 TE Policy, a new SID stack needs to be encapsulated. If no service SID is available, the SRv6 TE Policy needs to use the encaps encapsulation mode. That is, the SRv6 TE Policy encapsulates the IPv6 header and SRH when the traffic enters the SRv6 TE Policy, and the egress removes the IPv6 header and SRH in USD mode.
Currently, only the encaps encapsulation mode can be used for the following services, and the insert encapsulation mode cannot be used:An SRv6 TE Policy can dynamically calculate the encapsulation mode based on the configured encapsulation mode, hardware capability, and flavor information of the last two SIDs in a segment list. The calculation rules for the encapsulation mode are as follows: