Site of origin (SoO) sets are used to match the SoOs of VPN routes.
If only paragraph editing is used as an example, the corresponding line editing is similar. To use the line editing mode, perform the operations described in paragraph editing.
For detailed set and route-filter configuration steps, see Configuration Procedures of Sets and Route-Filters Using the Paragraph Editing Mode. For detailed description about XPL clauses, see XPL Paragraph Editing Clauses.
Objective |
Configure an SoO set to match the VPN routes carrying the SoO (100:1, 200:1, or 300:1). |
Configuration Example |
<HUAWEI> edit xpl extcommunity-list soo soo-list1
xpl extcommunity-list soo soo-list1
100:1,
200:1,
300:1
end-list
The SoO set in this example contains three elements and can match VPN routes carrying SoO 100:1, 200:1, or 300:1. |
Objective |
Configure a route-filter to overwrite the SoOs of the VPN routes carrying at least one of the SoOs specified in the set named soo-list1 with 100:1 and 200:1. |
Reference Example |
<HUAWEI> edit xpl route-filter r1
xpl route-filter r1
if extcommunity soo matches-any soo-list1 then
apply extcommunity soo { 100:1,200:1 } overwrite
endif
end-filter
The route-filter references the set named soo-list1 and overwrites the SoOs of the VPN routes carrying at least one of the SoOs specified in the set with 100:1 and 200:1. |