]> git.puffer.fish Git - mirror/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)
committerYash Ranjan <ranjany@vmware.com>
Fri, 18 Jun 2021 11:59:04 +0000 (04:59 -0700)
commitf84504e686aa52591e0a3c211cfd1b5afe324756
tree74e252d5318a75e40ffc5facd454f453b9357172
parenta5bc334beb2f976d7cf3f0d6250086f435e17b7f
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>
ospf6d/ospf6_asbr.c