Community discussions

MikroTik App
 
faisali
Member Candidate
Member Candidate
Topic Author
Posts: 180
Joined: Fri Oct 08, 2010 5:11 am

Another Question about Routing Filters...

Sun Jul 03, 2011 8:27 pm

When multiple conditions are defined on the match side of a single line in the filters, are these conditions (AND) or are the (OR)

e.g
/routing filter add chain=tnn-out bgp-communities=11280:661 invert-match=no action=accept set-bgp-prepend=1
/routing filter add chain=tnn-out bgp-communities=11280:662 invert-match=no action=accept set-bgp-prepend=1
can this be combined into one line ? would it be more efficient / less taxing on the system ?

Thanks.
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: Another Question about Routing Filters...

Sun Jul 03, 2011 9:25 pm

In your code they are OR. In the following they are AND.
/routing filter add chain=tnn-out bgp-communities=11280:661,11280:662 invert-match=no action=accept set-bgp-prepend=1
As far as I know there is not a more efficient way to write those rules.
 
faisali
Member Candidate
Member Candidate
Topic Author
Posts: 180
Joined: Fri Oct 08, 2010 5:11 am

Re: Another Question about Routing Filters...

Mon Jul 04, 2011 3:18 am

Cool. Thanks..

:)

Who is online

Users browsing this forum: No registered users and 69 guests