diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-05-24 14:51:05 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-05-24 14:51:05 +0200 |
commit | feae132e0f9bdc62d2b90bf676d12241af8e794c (patch) | |
tree | 2767cf9b23d85fdd7f029e27afe855f758430a60 /proto/ospf/neighbor.c | |
parent | b24b781117179f301116837f0a39468343e4805b (diff) |
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).
Diffstat (limited to 'proto/ospf/neighbor.c')
0 files changed, 0 insertions, 0 deletions