The segment-routing ipv6 locator command adds the SID attribute to the EVPN routes to be sent.
The undo segment-routing ipv6 locator command restores the default configuration.
By default, the SID attribute is not added to the EVPN routes to be sent.
Usage Scenario
In an EVPN VPWS scenario, if service traffic needs to be carried over an SRv6 path, run the segment-routing ipv6 locator command to add the SID attribute to the EVPN routes to be sent. Upon receipt of EVPN routes from a BGP EVPN peer, the local device can recurse routes over an SRv6 path based on the SID attribute carried in routes.
If a static SID is configured under the referenced locator, the static SID will be used first.<HUAWEI> system-view [~HUAWEI] evpn vpn-instance evrf1 vpws [*HUAWEI-evpn-instance-evrf1] route-distinguisher 100:1 [*HUAWEI-evpn-instance-evrf1] vpn-target 1:1 [*HUAWEI-evpn-instance-evrf1] quit [*HUAWEI] evpl instance 1 [*HUAWEI-evpl1] evpn binding vpn-instance evrf1 [*HUAWEI-evpl1] segment-routing ipv6 locator as