summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2023-03-30 22:36:13 -0500
committerJafar Al-Gharaibeh <jafar@atcorp.com>2023-04-18 00:21:05 -0500
commit6af89f8f033b61217322ca1e8fca324f813a1ef5 (patch)
tree626c01046012a628a44314d6d61e446ef61977ee /lib
parentbe574cf987311bf299de018b71084e69eb08f5fc (diff)
ospfd: use rib metric as the base for set metric +/-
When using route maps with external routes in OSPF as follows: ``` set metric +10 ``` The current behavior is to use the default ospf metric as the base and then add to 10 to it. The behavior isn't useful as-is. A value 30 (20 dfeault + 10) can be set directly instead. the behavior is also not consistent with bgp. bgp does use the rib metric in this case as the base. The current behavior also doesn't allow the metric to accumulate when crossing different routing domains such as vrfs causing the metric to reset every time the route enters a new vrf with a new ospf network. This PR changes the behavior such that the rib metric is used as a base for ospf exteral routes when used with `set metric -/+` Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions