A Policy set block can contain several extended community statements. Each set statement is applied to the matching route's extended community attribute in the top down order. That is, the first set is applied to the extended community attribute of the route, the second set is applied to the result of above, and so forth.
For example, assume that a policy is the following:
entry two { if { nlri 192.168.34.0/24; } then { extended-community set "rt:10.45.92.168:300"; extended-community add "rt:10.203.100.200:40 soo:64500:60000"; extended-community delete "rt:64505:10000 soo:72.192.34.10:70"; permit; } }
A BGP (Border Gateway Protocol) route 192.168.34.128/25 is received with extended community attribute rt:4567:100 soo:192.168.34.128.