From: Yash Ranjan Date: Mon, 24 May 2021 10:44:12 +0000 (-0700) Subject: ospf6d: Change the default metric parameter for redistribute X-Git-Tag: base_8.1~412^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a5bc334beb2f976d7cf3f0d6250086f435e17b7f;p=mirror%2Ffrr.git ospf6d: Change the default metric parameter for redistribute 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 --- diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 83b1631713..cc4b220ec8 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -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;