]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Change the default metric parameter for redistribute
authorYash Ranjan <ranjany@vmware.com>
Mon, 24 May 2021 10:44:12 +0000 (03:44 -0700)
committermergify-bot <noreply@mergify.io>
Thu, 22 Jul 2021 22:44:46 +0000 (22:44 +0000)
The default values will be set at the time of ospf6_redist_add
similar to ospfv2. Hence the default values will change as well.
Default metric type = E2
Default metic value = 20

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
(cherry picked from commit a5bc334beb2f976d7cf3f0d6250086f435e17b7f)

ospf6d/ospf6_asbr.c

index 35f50898a686fb42053cd3d809ee092f2969fc21..afdacefc7d4ff27117f87a2b1efb25ddc2876845 100644 (file)
@@ -1050,6 +1050,8 @@ static struct ospf6_redist *ospf6_redist_add(struct ospf6 *ospf6, int type,
 
        red = XCALLOC(MTYPE_OSPF6_REDISTRIBUTE, sizeof(struct ospf6_redist));
        red->instance = instance;
+       red->dmetric.type = -1;
+       red->dmetric.value = -1;
        ROUTEMAP_NAME(red) = NULL;
        ROUTEMAP(red) = NULL;