summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_damp.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-13 17:49:13 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-07-13 20:29:22 +0200
commit5c7571d43f57317b0827ac82fbebc4cdc6865be0 (patch)
tree2bc63ccbd805abc9689e9f3345e34871558d5c26 /bgpd/bgp_damp.c
parentlib: move \n vs. \r\n handling into vty code (diff)
downloadfrr-5c7571d43f57317b0827ac82fbebc4cdc6865be0.tar.xz
frr-5c7571d43f57317b0827ac82fbebc4cdc6865be0.zip
*: ditch vty_outln(), part 1 of 2
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_damp.c')
-rw-r--r--bgpd/bgp_damp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index d5a89c1ff..80cd77045 100644
--- a/bgpd/bgp_damp.c
+++ b/bgpd/bgp_damp.c
@@ -525,15 +525,15 @@ bgp_config_write_damp (struct vty *vty)
&& bgp_damp_cfg.reuse_limit == DEFAULT_REUSE
&& bgp_damp_cfg.suppress_value == DEFAULT_SUPPRESS
&& bgp_damp_cfg.max_suppress_time == bgp_damp_cfg.half_life*4)
- vty_outln (vty, " bgp dampening");
+ vty_out (vty, " bgp dampening\n");
else if (bgp_damp_cfg.half_life != DEFAULT_HALF_LIFE*60
&& bgp_damp_cfg.reuse_limit == DEFAULT_REUSE
&& bgp_damp_cfg.suppress_value == DEFAULT_SUPPRESS
&& bgp_damp_cfg.max_suppress_time == bgp_damp_cfg.half_life*4)
- vty_outln (vty, " bgp dampening %lld",
+ vty_out (vty, " bgp dampening %lld\n",
bgp_damp_cfg.half_life / 60LL);
else
- vty_outln (vty, " bgp dampening %lld %d %d %lld",
+ vty_out (vty, " bgp dampening %lld %d %d %lld\n",
bgp_damp_cfg.half_life/60LL,
bgp_damp_cfg.reuse_limit,
bgp_damp_cfg.suppress_value,
@@ -691,26 +691,26 @@ bgp_show_dampening_parameters (struct vty *vty, afi_t afi, safi_t safi)
if (bgp == NULL)
{
- vty_outln (vty, "No BGP process is configured");
+ vty_out (vty, "No BGP process is configured\n");
return CMD_WARNING;
}
if (CHECK_FLAG (bgp->af_flags[afi][safi], BGP_CONFIG_DAMPENING))
{
- vty_outln (vty, "Half-life time: %lld min",
+ vty_out (vty, "Half-life time: %lld min\n",
(long long)damp->half_life / 60);
- vty_outln (vty, "Reuse penalty: %d",
+ vty_out (vty, "Reuse penalty: %d\n",
damp->reuse_limit);
- vty_outln (vty, "Suppress penalty: %d",
+ vty_out (vty, "Suppress penalty: %d\n",
damp->suppress_value);
- vty_outln (vty, "Max suppress time: %lld min",
+ vty_out (vty, "Max suppress time: %lld min\n",
(long long)damp->max_suppress_time / 60);
- vty_outln (vty, "Max supress penalty: %u",
+ vty_out (vty, "Max supress penalty: %u\n",
damp->ceiling);
vty_out (vty, VTYNL);
}
else
- vty_outln (vty, "dampening not enabled for %s",
+ vty_out (vty, "dampening not enabled for %s\n",
afi == AFI_IP ? "IPv4" : "IPv6");
return CMD_SUCCESS;