BGP as-override

The as-override feature in 1.4 overrides an ASN if as-path equal to the origin AS. Is there any way to override an ASN anywhere in the as-path?

nw-diag

on Site3, as-path of 10.10.2.0/24 is “500 500”, route gets installed.
on Site2, as-path of 10.10.3.0/24 is “500 500”, route gets installed.
on Site1, as-path of 10.10.3.0/24 is “200 500 500”, route gets installed.
on Site3, as-path of 10.10.1.0/24 is “500 200 100” instead of desired “500 500 100”. So, route gets denied.

OS version: 1.4-rolling-202203220701

I think you can use replace-as over the router , where you use as-override . here’s link with documentation:

https://docs.vyos.io/en/latest/configuration/protocols/bgp.html?highlight=bgp#cfgcmd-set-protocols-bgp-neighbor-address-interface-local-as-asn-no-prepend-replace-as

regards