]> git.puffer.fish Git - matthieu/frr.git/commit
ospf6d: Set metric from default values when route-map metric not present
authorYash Ranjan <ranjany@vmware.com>
Wed, 2 Jun 2021 12:45:18 +0000 (05:45 -0700)
committermergify-bot <noreply@mergify.io>
Thu, 22 Jul 2021 22:44:47 +0000 (22:44 +0000)
commita11729c7f3ea28cd902c1c12d1250df4abbf93be
treee7ae2735e45584c29a18dff254e90586c345cc5f
parentbee5cf114b0d0c40c74cea00faa278aed4f1c6f1
ospf6d: Set metric from default values when route-map metric not present

For redistribute commands if route map is set, then route takes it's metric
values from the route map. But in the case that routemap is set but the
metric for the route map is not, then the route metric is set to type-1.

Check if the metric is set for the routemap. If not then set it as per
redistributed default values (type 2)

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
(cherry picked from commit f84504e686aa52591e0a3c211cfd1b5afe324756)
ospf6d/ospf6_asbr.c