Nexus SW:- NXOS: version 7.0(3)I7(6)
This SW has BGP peering with Cloud Vendor 1 , Cloud vendor 2 , Cloud Vendor 3
requirement is :-
I would like to advertise routes originated from cloud vendor 1 to cloud vendor 2 and ignore cloud vendor 3 and other AS routes
consider cloud vendor 1 has AS 65000
cloud vendor 2 has 38198
configuration:-
ip as-path access-list CV1AS seq 5 permit ^65000$
route-map CLV2 permit 10
match as-path CV1AS
neighbor <CLV2 neighborIP>
route-map CLV2 out
ip as-path access-list CV2AS seq 5 permit ^38198$
route-map CLV1 permit 10
match as-path CV2AS
neighbor <CLV1 neighborip>
route-map CLV1 out
could you some advise if the specified regex permit prefixes which are originated from the given AS Value or It needs to be changed to _AS$
Please correct me if I am wrong