From 29ab3b60d12b7fd42d7f941abba1e162b9cd9b3c Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Tue, 30 Jan 2018 07:42:28 -0800 Subject: [PATCH] ospfd: fix redistribute running config Testing: CL(config)# router ospf CL(config-router)# redistribute static metric-type 2 CL(config)# router ospf CL(config-router)# default-information originate always metric-type 2 show running output router ospf redistribute static default-information originate always ! Signed-off-by: Chirag Shah --- ospfd/ospf_vty.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index c923a6f35e..1276f5477c 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -10239,9 +10239,6 @@ static int config_write_ospf_distribute(struct vty *vty, struct ospf *ospf) if (red->dmetric.type == EXTERNAL_METRIC_TYPE_1) vty_out(vty, " metric-type 1"); - else if (red->dmetric.type == - EXTERNAL_METRIC_TYPE_2) - vty_out(vty, " metric-type 2"); if (ROUTEMAP_NAME(red)) vty_out(vty, " route-map %s", -- 2.39.5