• Ondřej Zajíček's avatar
    Do not initialize route metrics in import_control hook · feae132e
    Ondřej Zajíček authored
    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).
    feae132e
Name
Last commit
Last update
client Loading commit data...
conf Loading commit data...
doc Loading commit data...
filter Loading commit data...
lib Loading commit data...
misc Loading commit data...
nest Loading commit data...
proto Loading commit data...
sysdep Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
Doc Loading commit data...
INSTALL Loading commit data...
Makefile.in Loading commit data...
NEWS Loading commit data...
README Loading commit data...
aclocal.m4 Loading commit data...
bird.conf Loading commit data...
configure.ac Loading commit data...