diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2008-11-14 14:50:37 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2008-11-14 14:50:37 +0100 |
commit | e29fa06ece1bf9f9a47f224db797df940556136e (patch) | |
tree | 10775979f654be43a67c072e225879d3f42973d9 /doc/bird.sgml | |
parent | aebe06b40ce730a88cc8a3121be1944b3ddf5765 (diff) | |
download | bird-e29fa06ece1bf9f9a47f224db797df940556136e.tar bird-e29fa06ece1bf9f9a47f224db797df940556136e.zip |
New read-only route attribute 'proto' added. It returns a string
representing a name of the protocol that originated the route.
Strings can be compared using = or matched using ~. Routes can
be filtered, for example:
show route where proto ~ "bgp1*"
Diffstat (limited to 'doc/bird.sgml')
-rw-r--r-- | doc/bird.sgml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/bird.sgml b/doc/bird.sgml index 6622c1a..3ccbd5e 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -544,7 +544,8 @@ incompatible with each other (that is to prevent you from shooting in the foot). <p>The filter language supports common integer operators <cf>(+,-,*,/)</cf>, parentheses <cf/(a*(b+c))/, comparison <cf/(a=b, a!=b, a<b, a>=b)/. Logical operations include unary not (<cf/!/), and (<cf/&&/) and or (<cf/||/). Special operators include <cf/˜/ for "is element of a set" operation - it can be -used on element and set of elements of the same type (returning true if element is contained in the given set), or on IP and prefix (returning true if IP is within the range defined by that prefix), or on +used on 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 matches a shell-like pattern stored in second string) or on IP and prefix (returning true if IP is within the range defined by that prefix), or on prefix and prefix (returning true if first prefix is more specific than second one) or on bgppath and bgpmask (returning true if the path matches the mask) or on pair and clist (returning true if the community is element of the community list). @@ -601,6 +602,9 @@ defined by using the <cf>defined( <m>attribute</m> )</cf> operator. <tag><m/ip/ gw</tag> Next hop packets routed using this route should be forwarded to. + <tag><m/string/ proto</tag> + The name of the protocol which the route has been imported from. Read-only. + <tag><m/enum/ source</tag> what protocol has told me about this route. Possible values: <cf/RTS_DUMMY/, <cf/RTS_STATIC/, <cf/RTS_INHERIT/, <cf/RTS_DEVICE/, <cf/RTS_STATIC_DEVICE/, <cf/RTS_REDIRECT/, <cf/RTS_RIP/, <cf/RTS_OSPF/, <cf/RTS_OSPF_IA/, <cf/RTS_OSPF_EXT/, <cf/RTS_BGP/, <cf/RTS_PIPE/. |