[RFC PATCH 20/20] add typed documentation
30 Dec
2019
30 Dec
'19
4:56 p.m.
--- 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
2357
Age (days ago)
2357
Last active (days ago)
0 comments
1 participants
participants (1)
-
Asbjørn Sloth Tønnesen