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

index 83b1631713cc218b45430a94e863ff33247cd7db..cc4b220ec86c74c6317ccd9aa7a19fa727efff5d 100644 (file)
@@ -1174,6 +1174,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;