The policy should look similar to: route-policy rp_ramjet-export if community matches-any cs_local-aggregates or community matches-any cs_customer-routes or community matches-any cs_customer-attached-routes then pass else drop endif end-policy adam