[ospfd] trim redundant strings

2006-01-10 Paul Jakma <paul.jakma@sun.com>

	* ospf_vty.c: (config_write_ospf_distribute) trim down
	  redundant strings.
This commit is contained in:
paul 2006-01-10 20:36:49 +00:00
parent 867528434d
commit c42c177de3
2 changed files with 5 additions and 4 deletions

View File

@ -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 <paul.jakma@sun.com>

View File

@ -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");
if (ospf->default_originate == DEFAULT_ORIGINATE_ALWAYS)
vty_out (vty, " always");
if (ospf->dmetric[DEFAULT_ROUTE].value >= 0)
vty_out (vty, " metric %d",