Community discussions

MikroTik App
 
savage
Forum Guru
Forum Guru
Topic Author
Posts: 1264
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

delete communities

Sat Sep 09, 2023 10:55 am

Hi,

Am I missing something?
if (afi ipv4 && protocol bgp && bgp-communities equals TRANS-ANNOUNCE) {
delete bgp-communities TRANS-ANNOUNCE;
accept;
}
The filter matches communities TRANS-ANNOUNCE, but it does not delete TRANS-ANNOUNCE prior to sending the advertisement on to the provider. This is used as a outbound filter on a BGP peer.

delete bgp-communities other; Works, but it then removes all communities, and not only the communities in the TRANS-ANNOUNCE community-list

And yes, given the equals statement as well as manual confirmation - TRANS-ANNOUNCE includes 1 community in the list, and it is a complete, and full match.
 
swoga
just joined
Posts: 5
Joined: Fri Aug 21, 2015 11:57 am

Re: delete communities

Mon Sep 11, 2023 6:08 pm

Hello,

deleting and filtering on BGP communities is currently broken...
"delete bgp-communities ..." and "filter bgp-communities ..." are currently inverted when a community list used or the community is specified inline.
On the other hand, if a regex is used, the community is always deleted regardless if delete or filter.
I reported it to support in March (SUP-110901) but never got any response.
The problem still exists on the current release and I was surprised that no one else has noticed it.
 
savage
Forum Guru
Forum Guru
Topic Author
Posts: 1264
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Re: delete communities

Mon Sep 11, 2023 6:51 pm

I reported it to support in March (SUP-110901) but never got any response.
Also no response on my support ticket. Seems that is the norm these days.

TY for confirming.
 
User avatar
irrwitzer
just joined
Posts: 23
Joined: Mon Apr 11, 2022 11:54 pm

Re: delete communities

Thu Sep 14, 2023 9:40 pm

Hi guys,

created another one: #[SUP-128046]: routing-filter-rule delete bgp-communities not working as expected (v7.11.2)

How do you work around this?
And bonus question: How can I delete a community in ROS6? ;-)


Thanks and hopefully they will look into our tickets soon....
 
User avatar
irrwitzer
just joined
Posts: 23
Joined: Mon Apr 11, 2022 11:54 pm

Re: delete communities

Thu Sep 21, 2023 1:01 pm

Ticket updates from Mikrotik:

September 18th:
Thank you for the report, we will swap filter and delete behavior in one of the next versions.
September 21st:
This is an automated message. Our bug tracker reports, that your issue has been fixed. This means that in the upcoming days, we plan to release a RouterOS update with this fix.
I'd say it's looking good and I'm looking forward...

BUT I'm still looking for an equivalent for ROS 6 - IS there any chance I can delete a community via route filter on ROS6?!?

Thanks!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: delete communities

Thu Sep 21, 2023 4:17 pm

In v6
add chain=xx set-bgp-communities=""
 
User avatar
irrwitzer
just joined
Posts: 23
Joined: Mon Apr 11, 2022 11:54 pm

Re: delete communities

Thu Sep 21, 2023 4:19 pm

Hi @mrz,

Thanks for responding, but that doesn't remove a community per se, so I would have to "know" the complete list of communities that need to stay in the community string except for the one I need to remove.
Or am I reading you wrong?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: delete communities

Thu Sep 21, 2023 4:24 pm

If you want to remove only specific community then it is not possible in v6.
 
User avatar
irrwitzer
just joined
Posts: 23
Joined: Mon Apr 11, 2022 11:54 pm

Re: delete communities

Thu Sep 21, 2023 4:27 pm

Understood....
That's what I was afraid of....

Thanks! Will think of something....
 
User avatar
irrwitzer
just joined
Posts: 23
Joined: Mon Apr 11, 2022 11:54 pm

Re: delete communities

Tue Sep 26, 2023 2:26 pm

It's fixed:
What's new in 7.12beta9 (2023-Sep-25 15:19):

[ ... ]
*) route - reverse community "delete" and "filter" command behavior;
[ ... ]
/routing filter rule
add chain=bgp-backbone rule="append bgp-communities 65001:11111"
add chain=bgp-backbone rule="append bgp-communities 65001:22222"
add chain=bgp-backbone rule="append bgp-communities 65001:12345"
add chain=bgp-backbone rule="append bgp-communities 65001:54321"
add chain=bgp-backbone disabled=no rule="delete bgp-communities 65001:54321"
add chain=bgp-backbone disabled=no rule="if ( afi ipv4 && dst in 10.0.0.0/8 && dst-len <30 ) { accept }"

> /routing/bgp/advertisements/print detail
 0 peer=peer-130 dst=10.x.y.0/24 afi=ip local-pref=100 nexthop=10.i.j.4 origin=0
   communities=65001:22222,65001:12345,65001:11111
:D :D :D

seems fixed! Looking forward to the stable release, to get it fixed in prod as well.

Who is online

Users browsing this forum: No registered users and 7 guests