From c42c177de3ee3aa50c25b5e957c9ba284f19bf6b Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 10 Jan 2006 20:36:49 +0000 Subject: [ospfd] trim redundant strings 2006-01-10 Paul Jakma * ospf_vty.c: (config_write_ospf_distribute) trim down redundant strings. --- ospfd/ChangeLog | 2 ++ ospfd/ospf_vty.c | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'ospfd') diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index 9ec52ccd..10a5de6a 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -5,6 +5,8 @@ This was causing ospfd to not start if router-id had not been configured statically. (ospf_if_update) ditto. + * ospf_vty.c: (config_write_ospf_distribute) trim down + redundant strings. 2005-11-26 Paul Jakma diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index cc66d119..32dfdea0 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -7693,10 +7693,9 @@ config_write_ospf_distribute (struct vty *vty, struct ospf *ospf) /* default-information print. */ if (ospf->default_originate != DEFAULT_ORIGINATE_NONE) { - if (ospf->default_originate == DEFAULT_ORIGINATE_ZEBRA) - vty_out (vty, " default-information originate"); - else - vty_out (vty, " default-information originate always"); + vty_out (vty, " default-information originate"); + if (ospf->default_originate == DEFAULT_ORIGINATE_ALWAYS) + vty_out (vty, " always"); if (ospf->dmetric[DEFAULT_ROUTE].value >= 0) vty_out (vty, " metric %d", -- cgit v1.2.1