How add prefix From Bgp peer to address-list

How add Prefiexs Recieve Form BGp peer To address list firewall

At the moment there is no direct way. You could write a script which adds prefixes to address list, but that may lead to extensive CPU usage if BGP table is very large.

Please Share With me optimum Script

THX

Note that there are a couple of use cases where it would be very handy to have the received routes via BGP copied to an address list.
It would be nice when there was some option to do that. In BGP Instance you would get an option to select an address list, and maybe even the option to not have a routing table.
(the existing option Routing table could be modified so it shows “main” by default instead of none, and you can select “none” when you don’t need it to maintain a routing table)

The maintenance of the address list in similar way as the routing table would be more efficient than doing it via a script.

Please share with me Scripe base On reviece-From I used Find where recieve-from=BGPPeer1

Nothing add to address-list