apply extcommunity soo
Use apply extcommunity soo to set the SoO extended community attribute for BGP routes.
Use undo apply extcommunity soo to remove the SoO extended community attribute for BGP routes.
Syntax
apply extcommunity soo { site-of-origin }&<1-32> [ additive ]
undo apply extcommunity [ soo ]
Default
No SoO extended community attribute is set for BGP routes.
Views
Routing policy node view
Predefined user roles
network-admin
Parameters
site-of-origin: Sets the SoO extended community attribute, a string of 3 to 21 characters. &<1-32> indicates that you can specify a maximum of 32 SoO extended community attributes.
An SoO attribute has the following forms:
16-bit AS number:32-bit self-defined number. For example, 101:3. The AS number is in the range of 0 to 65535, and the self-defined number is in the range of 0 to 4294967295.
32-bit IP address:16-bit self-defined number. For example, 192.168.122.15:1. The self-defined number is in the range of 0 to 65535.
32-bit AS number:16-bit self-defined number. For example, 70000:3. The AS number is in the range of 65536 to 4294967295, and the self-defined number is in the range of 0 to 65535.
additive: Adds the specified attribute to the original extended community attribute.
Usage guidelines
If you do not specify any parameters, the undo form of the command removes all extended community attributes for BGP routes.
Examples
# Configure node 10 in permit mode for routing policy policy1 to add the SoO extended community attribute 1:100 to BGP routes matching AS path list 1.
<Sysname> system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply extcommunity soo 1:100 additive