diff options
author | paul <paul> | 2006-01-10 20:36:49 +0000 |
---|---|---|
committer | paul <paul> | 2006-01-10 20:36:49 +0000 |
commit | c42c177de3ee3aa50c25b5e957c9ba284f19bf6b (patch) | |
tree | 32414691a47de0aa8980c51a7216dfe2e1f1d878 | |
parent | 867528434d32102b02e2538dcaa7c86aaf47f695 (diff) |
[ospfd] trim redundant strings
2006-01-10 Paul Jakma <paul.jakma@sun.com>
* ospf_vty.c: (config_write_ospf_distribute) trim down
redundant strings.
-rw-r--r-- | ospfd/ChangeLog | 2 | ||||
-rw-r--r-- | ospfd/ospf_vty.c | 7 |
2 files changed, 5 insertions, 4 deletions
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 <paul.jakma@sun.com> 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", |