set routing as-path-list


The set routing as-path-list command configures an AS Path list to match a specific AS path. AS Path lists are named lists of regular expression rules. They are used to match AS Path attributes in the routes for inclusion in or exclusion from route policies.

The delete routing as-path-list command removes the AS Path list configuration.


Command Syntax

set routing as-path-list <as-path-list-name> {deny|permit} regex <txt>

delete routing as-path-list <as-path-list-name> [{deny|permit} regex <txt>]


Parameter

Parameter

Description

as-path-list <as-path-list-name>

Specifies the name of the AS Path list.

{deny|permit} 

Specifies whether the route is available for further processing when there is a match.

regex <txt>

Specifies the AS_Path regular expression (BGP Regular Expressions). The value is a string of 1 to 255 characters, space is not supported. 


Example

  • Configure an AS Path list, permit routes that contain 20 in the AS_Path to pass through.
admin@Xorplus# set routing as-path-list Aslist permit regex _20_
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.