Community discussions

MikroTik App
 
TUNG0407
newbie
Topic Author
Posts: 48
Joined: Tue Nov 03, 2009 7:04 am

ROS V7 FILTER RULE

Mon Jan 16, 2023 11:40 am

Dear ALL,

I'm migrating the routing rulte from ROSv6 to v7, i dont know how to re-write the reg exp, anyone can help?

ros v.6
if (bgp-as-path-slow-legacy "^111,222$") { set bgp-local-pref 270; append bgp-communities 111:222; accept; }
if (bgp-as-path-slow-legacy "^111,222,([0-9]+)") { set bgp-local-pref 270; append bgp-communities 111:222; accept; }

TungHo
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS V7 FILTER RULE

Mon Jan 16, 2023 12:21 pm

bgp-as-path-slow-legacy has the same syntax as regexps in ROSv6, so the same regexp should work in ROSv7.
 
TUNG0407
newbie
Topic Author
Posts: 48
Joined: Tue Nov 03, 2009 7:04 am

Re: ROS V7 FILTER RULE

Mon Jan 16, 2023 12:53 pm

bgp-as-path-slow-legacy has the same syntax as regexps in ROSv6, so the same regexp should work in ROSv7.
Yes, but i'm looking to use ROSv7.0 filter.
 
TUNG0407
newbie
Topic Author
Posts: 48
Joined: Tue Nov 03, 2009 7:04 am

Re: ROS V7 FILTER RULE

Tue Jan 17, 2023 11:50 am

chain=AS-ISP1-Out prefix=202.73.32.0/19 prefix-length=19-24 bgp-communities="" invert-match=no action=discard set-bgp-prepend-path="" set-bgp-communities=""

how to migrate to v7?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS V7 FILTER RULE  [SOLVED]

Tue Jan 17, 2023 12:01 pm

You can find examples on how to do this here:
https://help.mikrotik.com/docs/display/ ... ingFilters

and here, you can also find how to use new BGP as path matchers:
https://help.mikrotik.com/docs/display/ ... nd+Filters

Who is online

Users browsing this forum: No registered users and 13 guests