0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00
bird/proto
Ondrej Zajicek (work) feae132e0f Do not initialize route metrics in import_control hook
During route export, the receiving protocol often initialized route
metrics to default value in its import_control hook before export filter
was executed. This is inconsistent with the expectation that an export
filter would process the same route as one in the routing table and it
breaks setting these metrics before (e.g. for static routes directly in
static protocol).

The patch removes the initialization of route metrics in import_control
hook, the default values are already handled in rt_notify hook called
after export filters.

The patch also changed the behavior of OSPF to keep metrics when a route
is reannounced between OSPF instances (to be consistent with other
protocols) and the behavior when both ospf_metric1 and ospf_metric2
are specified (to have more expected behavior).
2018-05-24 14:51:05 +02:00
..
babel Do not initialize route metrics in import_control hook 2018-05-24 14:51:05 +02:00
bfd Minor fixes for debug mode 2017-12-16 16:31:43 +01:00
bgp BGP: Fix extended next hop handling 2018-04-12 16:55:56 +02:00
ospf Do not initialize route metrics in import_control hook 2018-05-24 14:51:05 +02:00
pipe Pipe: show export state 2018-01-23 13:52:17 +01:00
radv Nest: Allow modification of channels inherited from templates 2018-01-09 18:42:22 +01:00
rip Do not initialize route metrics in import_control hook 2018-05-24 14:51:05 +02:00
rpki Use non-fatal asserts even for regular build 2018-01-10 16:17:37 +01:00
static Lib: Fix macro/keyword collisions 2017-12-10 13:16:31 +01:00
Doc RPKI protocol with one cache server per protocol 2016-12-07 09:35:24 +01:00