From feae132e0f9bdc62d2b90bf676d12241af8e794c Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 24 May 2018 14:51:05 +0200 Subject: 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). --- doc/bird.sgml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/bird.sgml b/doc/bird.sgml index ae308d4c..b4d9ea4e 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1618,9 +1618,7 @@ regarded as empty bgppath/*clist for most purposes. The optional attribute that can be used to specify a distance to the network for routes that do not have a native protocol metric attribute (like

There also exist protocol-specific attributes which are described in the @@ -3536,8 +3534,15 @@ protocol ospf [v2|v3] <name> { with internal Each external route can also carry attribute