I have a BGP session, for example with AS1000, through which they send me the complete routing table. However, we are now going to connect to an IXP, let’s say AS3000. The IXP is requesting that I do not advertise any routes learned from AS1000. Would the following filter be effective?
To answer your question, yes. This filter would work. However, you would set this on the output filter chain used for your peering session with the IXP. As a good practice, you should consider reversing your logic, and creating a set of filters that allow you to export the prefixes you specify versus export everything and reject X. This is a safety measure to help prevent unintended route leaks. Also keep in mind, in ROS7, the default behavior is to reject routes. If you were trying to just have a single rule in the chain (assuming you ignore the suggestions above) then your rule would look something like this:
if ( bgp-input-remote-as==1000 ){ reject; } else { accept; }