[BGP] as-path-prepend based on as-path-list


#1

Is possible to prepent my ASN for prefixes received thorugh a defined as-path ?

I did the following (Fake ASN for posting here)

# show policy as-path-list 
 as-path-list FORCE-CARRIER2 {
     rule 101 {
         action permit
         regex "^1111 2222"
     }
 }

# show policy route-map AS99999-out 
 rule 101 {
     action permit
     match {
         ip {
             address {
                 prefix-list AS99999-v4-out
             }
         }
     }
 }
 rule 102 {
     action permit
     match {
         as-path FORCE-CARRIER2
     }
     set {
         as-path-prepend "99999 99999 99999"
     }
 }

# show protocols bgp 99999 neighbor 1.2.3.4 route-map export 

 export AS99999-out

but doesn’t work.