[RFC PATCH 20/20] add typed documentation
Asbjørn Sloth Tønnesen
ast at 2e8.dk
Mon Dec 30 17:56:46 CET 2019
---
doc/bird.sgml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/doc/bird.sgml b/doc/bird.sgml
index 8548c9c6..b9e5c45d 100644
--- a/doc/bird.sgml
+++ b/doc/bird.sgml
@@ -1229,6 +1229,16 @@ bird> show route filter { if 127.0.0.5 ˜ net then accept; }
bird>
</code>
+<p>Constants, functions and filters can also be declared for a specific table type context.
+
+<code>
+define default_route:ipv4 = 0.0.0.0/0;
+define default_route:ipv6 = ::/0;
+
+function is_default_route()
+ return net = default_route;
+}
+</code>
<sect>Data types
<label id="data-types">
--
2.24.0
More information about the Bird-users
mailing list