How to announce GBP Communities to BGP peers on V7.15

I hope someone can assist me with this.

My BGP upstream peer has asked me to add a BGP community on my side to advertise to them along with my prefix. At this point the filter rule that i have created is " if (bgp-communities any-list communitylist) {set bgp-communities 0:34465; accept;}"

this then gets applied on my BGP out filter but when i do so my prefix is no longer being routed over the internet.

Is this the correct way to advertise BGP communities in V7 or is there another way.

Thank you

works for me with Google

if (dst in bgp-networks-ix && dst-len in 16-48) {append bgp-communities 15169:13298; accept}

Is that the rule that you use word for word

Where do you apply that filter on the BGP out or in

Output Filter for the BGP connection, rule “as is”