How to use "input accept communities" in BGP?

https://help.mikrotik.com/docs/display/ROS/BGP
input.accept-comunities (string; Default: ) A quick way to filter incoming updates with specific communities. It allows filtering incoming messages directly before they are even parsed and stored in memory, that way significantly reducing memory usage. Regular input filter chain can only reject prefixes which means that it will still eat memory and will be visible in /routing route table as “not active, filtered”. Changes to be applied required session refresh.

I use a service that provides a bunch of bgp communities and I want to filter some of them.
E.g. I need 65444:700 and 65444:710

so I add:

/routing filter community-list
add communities=65444:710,65444:700 disabled=no list=some_list

I edit my bgp connection to enable input.accept-communities

/routing bgp connection
add as=*** disabled=no hold-time=4m input.accept-communities=some_list \
    .filter=bgp_in keepalive-time=1m listen=yes local.address=*** .role=\
    ebgp multihop=yes name=some_bgp output.filter-chain=discard \
    remote.address=*** .as=65444 router-id=*** \
    routing-table=main

filter to enable gw to routes:

/routing filter rule
add chain=bgp_in disabled=no rule="set gw some_gw; accept"

But nothing happens, I still receive all the communities.
It works only f I use filtering like below:

/routing filter rule
add chain=bgp_in disabled=no rule="if ( bgp-communities equal 65444:700 || bg\
    p-communities equal 65444:710) {set gw some_gw; accept}"

But it’s a waste of resources…

anyone?

Please tell me, were you able to solve your problem and in what way?

No. They say it’s a bug in routeros.

anyone? :slight_smile:

WTF mikrotik? Nobody uses this feature?
i’d like to use .accept-comunities in BGP to reduce memory usage (according to VERY poorly written documentation mentioned above), but it’s not working.
How it is supposed to work? Community list in /routing/filters or directly enter communities to input.accept-communities?

Anyway, can anyone provide a link to where

?

Looking for same Answer.

Hope some one can Help

Appriciate if any one can put some light into this topic!!!

now there are two of us :smiley:

Anyone more?

no one is using this or no one is aware of this??? :laughing:

currently input.accept-communities does not work as intended, problem is known and it will be addressed in the future.

people are switching more and more to ROSv7 for BGP services
please shift the focus more to bgp related functions in ROSv7

somehow operators see the benefits of price/performance of MT CCRs - guess because of the insane licensing madness of other “big brands”

Almost 2 years from topic start - Still actual

Any ETA on this one?

in 7.16.2 (running on a 1100AHx4) it filters out communities which are not in the given list.

what do you expect to happen? that the route would not become active if a given community is not sent with the route-info?