mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Doc: Fix protocol outline in RPKI
Protocol outlines should not contain specific values. Also fix some space intendation in code sections.
This commit is contained in:
parent
161aef353a
commit
7e65bb83c7
@ -1455,8 +1455,8 @@ This argument can be omitted if there exists only a single instance.
|
|||||||
Control protocol debugging.
|
Control protocol debugging.
|
||||||
|
|
||||||
<tag><label id="cli-dump">dump resources|sockets|interfaces|neighbors|attributes|routes|protocols "<m/file/"</tag>
|
<tag><label id="cli-dump">dump resources|sockets|interfaces|neighbors|attributes|routes|protocols "<m/file/"</tag>
|
||||||
Creates the given file (it must not exist) and dumps contents of
|
Creates the given file (it must not exist) and dumps contents of
|
||||||
internal data structures there. By sending SIGUSR1, you get all of
|
internal data structures there. By sending SIGUSR1, you get all of
|
||||||
these concatenated to <cf/bird.dump/ in the current directory.
|
these concatenated to <cf/bird.dump/ in the current directory.
|
||||||
The file is only readable for the user running the daemon.
|
The file is only readable for the user running the daemon.
|
||||||
The format of dump files is internal and could change in the future
|
The format of dump files is internal and could change in the future
|
||||||
@ -1833,7 +1833,7 @@ ec set es = [ (rt, myas, *), (rt, myas+2, 0..16*16*16-1) ];
|
|||||||
as used by UNIX shells. Autonomous system numbers match themselves,
|
as used by UNIX shells. Autonomous system numbers match themselves,
|
||||||
<cf/*/ matches any (even empty) sequence of arbitrary AS numbers and
|
<cf/*/ matches any (even empty) sequence of arbitrary AS numbers and
|
||||||
<cf/?/ matches one arbitrary AS number. For example, if <cf>bgp_path</cf>
|
<cf/?/ matches one arbitrary AS number. For example, if <cf>bgp_path</cf>
|
||||||
is 4 3 2 1, then: <tt>bgp_path ˜ [= * 4 3 * =]</tt> is true,
|
is 4 3 2 1, then: <tt>bgp_path ˜ [= * 4 3 * =]</tt> is true,
|
||||||
but <tt>bgp_path ˜ [= * 4 5 * =]</tt> is false. There is also
|
but <tt>bgp_path ˜ [= * 4 5 * =]</tt> is false. There is also
|
||||||
<cf/+/ operator which matches one or multiple instances of previous
|
<cf/+/ operator which matches one or multiple instances of previous
|
||||||
expression, e.g. <tt>[= 1 2+ 3 =]</tt> matches both path 1 2 3 and path
|
expression, e.g. <tt>[= 1 2+ 3 =]</tt> matches both path 1 2 3 and path
|
||||||
@ -2231,8 +2231,8 @@ protocol sections.
|
|||||||
<tag><label id="aggregator-rule">aggregate on <m/expr/ | <m/attribute/ [<m/, .../]</tag>
|
<tag><label id="aggregator-rule">aggregate on <m/expr/ | <m/attribute/ [<m/, .../]</tag>
|
||||||
All the given filter expressions and route attributes are evaluated for each route. Then routes
|
All the given filter expressions and route attributes are evaluated for each route. Then routes
|
||||||
are sorted into buckets where <em/all/ values are the same. Note: due to performance reasons,
|
are sorted into buckets where <em/all/ values are the same. Note: due to performance reasons,
|
||||||
all filter expressions must return a compact type, e.g. integer, a BGP
|
all filter expressions must return a compact type, e.g. integer, a BGP
|
||||||
(standard, extended, large) community or an IP address. If you need to compare e.g. modified
|
(standard, extended, large) community or an IP address. If you need to compare e.g. modified
|
||||||
AS Paths in the aggregation rule, you can define a custom route attribute and set this attribute
|
AS Paths in the aggregation rule, you can define a custom route attribute and set this attribute
|
||||||
in the export filter. For now, it's mandatory to say <cf/net/ here, we can't merge prefixes yet.
|
in the export filter. For now, it's mandatory to say <cf/net/ here, we can't merge prefixes yet.
|
||||||
|
|
||||||
@ -2307,7 +2307,7 @@ supports the following per-interface configuration options:
|
|||||||
protocol babel [<name>] {
|
protocol babel [<name>] {
|
||||||
ipv4 { <channel config> };
|
ipv4 { <channel config> };
|
||||||
ipv6 [sadr] { <channel config> };
|
ipv6 [sadr] { <channel config> };
|
||||||
randomize router id <switch>;
|
randomize router id <switch>;
|
||||||
interface <interface pattern> {
|
interface <interface pattern> {
|
||||||
type <wired|wireless|tunnel>;
|
type <wired|wireless|tunnel>;
|
||||||
rxcost <number>;
|
rxcost <number>;
|
||||||
@ -4270,28 +4270,28 @@ ipv4 table vrf0v4;
|
|||||||
ipv6 table vrf0v6;
|
ipv6 table vrf0v6;
|
||||||
|
|
||||||
protocol kernel kernel0v4 {
|
protocol kernel kernel0v4 {
|
||||||
vrf "vrf0";
|
vrf "vrf0";
|
||||||
ipv4 { table vrf0v4; export all; };
|
ipv4 { table vrf0v4; export all; };
|
||||||
kernel table 100;
|
kernel table 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel0v6 {
|
protocol kernel kernel0v6 {
|
||||||
vrf "vrf0";
|
vrf "vrf0";
|
||||||
ipv6 { table vrf0v6; export all; };
|
ipv6 { table vrf0v6; export all; };
|
||||||
kernel table 100;
|
kernel table 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
protocol l3vpn l3vpn0 {
|
protocol l3vpn l3vpn0 {
|
||||||
vrf "vrf0";
|
vrf "vrf0";
|
||||||
ipv4 { table vrf0v4; };
|
ipv4 { table vrf0v4; };
|
||||||
ipv6 { table vrf0v6; };
|
ipv6 { table vrf0v6; };
|
||||||
vpn4 { table vpntab4; };
|
vpn4 { table vpntab4; };
|
||||||
vpn6 { table vpntab6; };
|
vpn6 { table vpntab6; };
|
||||||
mpls { label policy vrf; };
|
mpls { label policy vrf; };
|
||||||
|
|
||||||
rd 10:12;
|
rd 10:12;
|
||||||
import target [(rt, 10, 32..40)];
|
import target [(rt, 10, 32..40)];
|
||||||
export target [(rt, 10, 30), (rt, 10, 31)];
|
export target [(rt, 10, 30), (rt, 10, 31)];
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
@ -4446,11 +4446,11 @@ protocol ospf [v2|v3] <name> {
|
|||||||
translator <switch>;
|
translator <switch>;
|
||||||
translator stability <num>;
|
translator stability <num>;
|
||||||
|
|
||||||
networks {
|
networks {
|
||||||
<prefix>;
|
<prefix>;
|
||||||
<prefix> hidden;
|
<prefix> hidden;
|
||||||
};
|
};
|
||||||
external {
|
external {
|
||||||
<prefix>;
|
<prefix>;
|
||||||
<prefix> hidden;
|
<prefix> hidden;
|
||||||
<prefix> tag <num>;
|
<prefix> tag <num>;
|
||||||
@ -5850,26 +5850,27 @@ define more RPKI protocols generally.
|
|||||||
|
|
||||||
<code>
|
<code>
|
||||||
protocol rpki [<name>] {
|
protocol rpki [<name>] {
|
||||||
roa4 { table <tab>; };
|
roa4 { table <tab>; };
|
||||||
roa6 { table <tab>; };
|
roa6 { table <tab>; };
|
||||||
aspa { table <tab>; };
|
aspa { table <tab>; };
|
||||||
remote <ip> | "<domain>" [port <num>];
|
remote <ip> | "<domain>" [port <num>];
|
||||||
port <num>;
|
port <num>;
|
||||||
local address <ip>;
|
local address <ip>;
|
||||||
refresh [keep] <num>;
|
refresh [keep] <num>;
|
||||||
retry [keep] <num>;
|
retry [keep] <num>;
|
||||||
expire [keep] <num>;
|
expire [keep] <num>;
|
||||||
transport tcp {
|
ignore max length <switch>;
|
||||||
authentication none|md5;
|
min version <num>;
|
||||||
password "<text>";
|
max version <num>;
|
||||||
};
|
transport tcp {
|
||||||
transport ssh {
|
authentication none|md5;
|
||||||
bird private key "</path/to/id_rsa>";
|
password "<text>";
|
||||||
remote public key "</path/to/known_host>";
|
};
|
||||||
user "<name>";
|
transport ssh {
|
||||||
};
|
bird private key "</path/to/id_rsa>";
|
||||||
max version 2;
|
remote public key "</path/to/known_host>";
|
||||||
min version 2;
|
user "<name>";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user