summaryrefslogtreecommitdiff
path: root/doc/bird.sgml
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-07-19 12:16:51 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-07-19 12:16:51 +0200
commit12640c149976e1eca54d9c22c593d07a27c49d42 (patch)
tree3211d6f5c01a5c39fb0345f779c4e35f07b4cca4 /doc/bird.sgml
parent321ff8c4049ec6c2fa198858b4a7f1814ce05e39 (diff)
Babel: Documentation updates
This updates the documentation to correctly mention Babel when protocols are listed, and adds examples and route attribute documentation to the Babel section of the docs. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Diffstat (limited to 'doc/bird.sgml')
-rw-r--r--doc/bird.sgml34
1 files changed, 31 insertions, 3 deletions
diff --git a/doc/bird.sgml b/doc/bird.sgml
index de7041a9..b90f65d1 100644
--- a/doc/bird.sgml
+++ b/doc/bird.sgml
@@ -610,8 +610,8 @@ agreement").
options, in that case for given interface the first matching interface
option is used.
- This option is allowed in BFD, Direct, OSPF, RAdv and RIP protocols, but
- in OSPF protocol it is used in the <cf/area/ subsection.
+ This option is allowed in Babel, BFD, Direct, OSPF, RAdv and RIP
+ protocols, but in OSPF protocol it is used in the <cf/area/ subsection.
Default: none.
@@ -1314,7 +1314,7 @@ clist for most purposes.
<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_EXT1/, <cf/RTS_OSPF_EXT2/, <cf/RTS_BGP/,
- <cf/RTS_PIPE/.
+ <cf/RTS_PIPE/, <cf/RTS_BABEL/.
<tag><m/enum/ cast</tag>
Route type (Currently <cf/RTC_UNICAST/ for normal routes,
@@ -1477,6 +1477,34 @@ protocol babel [<name>] {
yes.
</descrip>
+<sect1>Attributes
+
+<p>Babel defines just one attribute: the internal babel metric of the route. It
+is exposed as the <cf/babel_metric/ attribute and has range from 1 to infinity
+(65535).
+
+<sect1>Example
+
+<p><code>
+protocol babel {
+ interface "eth*" {
+ type wired;
+ };
+ interface "wlan0", "wlan1" {
+ type wireless;
+ hello interval 1;
+ rxcost 512;
+ };
+ interface "tap0";
+
+ # This matches the default of babeld: redistribute all addresses
+ # configured on local interfaces, plus re-distribute all routes received
+ # from other babel peers.
+
+ export where (source = RTS_DEVICE) || (source = RTS_BABEL);
+}
+</code>
+
<sect><label id="sect-bfd">BFD