summaryrefslogtreecommitdiff
path: root/ospfd/ospf_vty.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2018-01-30 07:42:28 -0800
committerChirag Shah <chirag@cumulusnetworks.com>2018-01-30 10:05:20 -0800
commit29ab3b60d12b7fd42d7f941abba1e162b9cd9b3c (patch)
tree9f37fd1f3442bb1f0da0575afb87bf81eda79479 /ospfd/ospf_vty.c
parent08951735bd9cf05a0abdd1a1c2eb17fca2043618 (diff)
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 <chirag@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r--ospfd/ospf_vty.c3
1 files changed, 0 insertions, 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",