78 ROUTING POLICY COMMON
CONFIGURATION COMMANDS
nRouting policy common configuration commands are applicable to both IPv4 and
IPv6.

apply as-path

Syntax apply as-path as-number&<1-10> [rep lace ]
undo apply as-path
View Routing policy view
Parameters as-number: Autonomous system number, in the range of 1 to 65535.
&<1-10>: Indicates you can enter as-number up to 10 times.
replace: Replaces the original AS number.
Description Use the apply as-path command to apply the specified AS numbers to BGP
routes.
Use the undo apply as-path command to remove the clause configuration.
No AS_PATH attribute is set by default.
With the replace keyword, using the apply as-path command replaces the
original AS_PATH attribute with specified AS numbers. Without the replace
keyword, using this command adds the specified AS numbers before the original
AS_PATH attribute.
Examples # Create routing policy policy1 with node 10, matching mode as permit. If BGP
routing information matches AS-path-ACL 1, add AS number 200 before the
original AS_PATH attribute.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply as-path 200

apply comm-list delete

Syntax apply comm-list comm-list-number delete