Add bgp remove-private-as all option
set protocols bgp 65001 neighbor 10.0.0.2 address-family ipv4-unicast remove-private-as all
FRR
r1(config-router-af)# neighbor 10.0.0.2 remove-private-AS <cr> all Apply to all AS numbers replace-AS Replace private ASNs with our ASN in outbound updates