# BGP - AS Path Policy VyOS provides policies commands exclusively for BGP traffic filtering and manipulation: **as-path-list** is one of them. ## Configuration ### policy as-path-list ```{cfgcmd} set policy as-path-list \ Create as-path-policy identified by name ``. ``` ```{cfgcmd} set policy as-path-list \ description \ Set description for as-path-list policy. ``` ```{cfgcmd} set policy as-path-list \ rule \<1-65535\> action \ Set action to take on entries matching this rule. ``` ```{cfgcmd} set policy as-path-list \ rule \<1-65535\> description \ Set description for rule. ``` ```{cfgcmd} set policy as-path-list \ rule \<1-65535\> regex \ Regular expression to match against an AS path. For example "64501 64502". ```