set routing route-map set-action as-path exclude


The set routing route-map set-action as-path exclude command removes all occurrences of the configured AS Path from the AS Path attribute of the route.
The delete routing route-map set-action as-path exclude command restores the default behavior of not modifying the AS Path attribute list.

Command Syntax

set routing route-map <route-map-name> order <NUMBER> set-action as-path exclude <AS>

delete routing route-map <route-map-name> order <NUMBER> set-action as-path exclude <AS>


Parameter

Parameter

Description

route-map <route-map-name>

Specifies the name of the route map. Required.

order <NUMBER>

Specifies the sequence number of the entry. Required. The value is an integer that ranges from 1 to 65535.

as-path exclude <AS>Specifies the AS number to be removed from the AS Path attribute of the route. It is a 4-byte AS number in asplain format (z), or asdot format (x.y), where z is a number from 1 to 4294967295 and x and y are 16-bit numbers in the range 0 to 65535.


Example

  •  Configure a action clause in the route map to remove the AS from the AS Path attribute of the route:
admin@Xorplus# set routing route-map GlobalMap order 10 set-action as-path exclude 10
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.