0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

Doc: Improve readability of the operator documentation

Minor changes by committer.
This commit is contained in:
Johannes Erwerle 2024-10-15 16:56:48 +02:00 committed by Ondrej Zajicek
parent 48a620a916
commit 72c2df562d

View File

@ -1897,21 +1897,31 @@ in the foot).
<label id="operators"> <label id="operators">
<p>The filter language supports common integer operators <cf>(+,-,*,/)</cf>, <p>The filter language supports common integer operators <cf>(+,-,*,/)</cf>,
parentheses <cf/(a*(b+c))/, comparison <cf/(a=b, a!=b, a&lt;b, a&gt;=b)/. parentheses <cf/(a*(b+c))/, comparison <cf/(a=b, a!=b, a&lt;b, a&gt;=b)/.</p>
Logical operations include unary not (<cf/!/), and (<cf/&amp;&amp;/), and or
(<cf/&verbar;&verbar;/). Special operators include (<cf/&tilde;/, <p>Logical operations include unary not (<cf/!/), and (<cf/&amp;&amp;/), and or
<cf/!&tilde;/) for "is (not) element of a set" operation - it can be used on (<cf/&verbar;&verbar;/).</p>
element and set of elements of the same type (returning true if element is
contained in the given set), or on two strings (returning true if first string <p>Special operators include (<cf/&tilde;/, <cf/!&tilde;/) for "is (not) element
matches a shell-like pattern stored in second string) or on IP and prefix of a set" operation - it can be used on:
(returning true if IP is within the range defined by that prefix), or on prefix <itemize>
and prefix (returning true if first prefix is more specific than second one) or <item>element and set of elements of the same type (returning true if
on bgppath and bgpmask (returning true if the path matches the mask) or on element is contained in the given set)
number and bgppath (returning true if the number is in the path) or on bgppath <item>two strings (returning true if the first string matches a shell-like
and int (number) set (returning true if any ASN from the path is in the set) or pattern stored in the second string)
on pair/quad and clist (returning true if the pair/quad is element of the <item>IP and prefix (returning true if IP is within the range defined by
clist) or on clist and pair/quad set (returning true if there is an element of that prefix)
the clist that is also a member of the pair/quad set). <item>prefix and prefix (returning true if the first prefix is more specific
than the second one)
<item>bgppath and bgpmask (returning true if the path matches the mask)
<item>number and bgppath (returning true if the number is in the path)
<item>bgppath and int (number) set (returning true if any ASN from the
path is in the set)
<item>pair/quad and clist (returning true if the pair/quad is element of
the clist)
<item>clist and pair/quad set (returning true if there is an element of the
clist that is also a member of the pair/quad set).
</itemize>
<p>There is one operator related to ROA infrastructure - <cf/roa_check()/. It <p>There is one operator related to ROA infrastructure - <cf/roa_check()/. It
examines a ROA table and does <rfc id="6483"> route origin validation for a examines a ROA table and does <rfc id="6483"> route origin validation for a