summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_top.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-06-21 05:10:57 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-06-29 19:31:28 +0200
commit96ade3ed7716c89b8047a1c0ab3377985d461cf8 (patch)
tree1c3061738c2c0027612b6cdb3e5d5eccb08587bf /ospf6d/ospf6_top.c
parentlib: add vty_outln() (diff)
downloadfrr-96ade3ed7716c89b8047a1c0ab3377985d461cf8.tar.xz
frr-96ade3ed7716c89b8047a1c0ab3377985d461cf8.zip
*: use vty_outln
Saves 400 lines Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_top.c')
-rw-r--r--ospf6d/ospf6_top.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c
index c0794d863..b1a9cb05e 100644
--- a/ospf6d/ospf6_top.c
+++ b/ospf6d/ospf6_top.c
@@ -813,8 +813,7 @@ ospf6_show (struct vty *vty, struct ospf6 *o)
/* Redistribute configuration */
/* XXX */
- vty_out (vty, " LSA minimum arrival %d msecs%s", o->lsa_minarrival,
- VTY_NEWLINE);
+ vty_outln (vty, " LSA minimum arrival %d msecs",o->lsa_minarrival);
/* Show SPF parameters */
vty_out(vty, " Initial SPF scheduling delay %d millisec(s)%s"
@@ -857,12 +856,12 @@ ospf6_show (struct vty *vty, struct ospf6 *o)
if (CHECK_FLAG(o->config_flags, OSPF6_LOG_ADJACENCY_CHANGES))
{
if (CHECK_FLAG(o->config_flags, OSPF6_LOG_ADJACENCY_DETAIL))
- vty_out(vty, " All adjacency changes are logged%s",VTY_NEWLINE);
+ vty_outln (vty, " All adjacency changes are logged");
else
- vty_out(vty, " Adjacency changes are logged%s",VTY_NEWLINE);
+ vty_outln (vty, " Adjacency changes are logged");
}
- vty_out (vty, "%s",VTY_NEWLINE);
+ vty_outln (vty, "");
for (ALL_LIST_ELEMENTS_RO (o->area_list, n, oa))
ospf6_area_show (vty, oa);
@@ -978,7 +977,7 @@ ospf6_distance_config_write (struct vty *vty)
struct ospf6_distance *odistance;
if (ospf6->distance_all)
- vty_out (vty, " distance %u%s", ospf6->distance_all, VTY_NEWLINE);
+ vty_outln (vty, " distance %u", ospf6->distance_all);
if (ospf6->distance_intra
|| ospf6->distance_inter
@@ -993,7 +992,7 @@ ospf6_distance_config_write (struct vty *vty)
if (ospf6->distance_external)
vty_out (vty, " external %u", ospf6->distance_external);
- vty_out (vty, "%s", VTY_NEWLINE);
+ vty_outln (vty, "");
}
for (rn = route_top (ospf6->distance_table); rn; rn = route_next (rn))
@@ -1001,10 +1000,9 @@ ospf6_distance_config_write (struct vty *vty)
{
char buf[PREFIX_STRLEN];
- vty_out (vty, " distance %u %s %s%s", odistance->distance,
+ vty_outln (vty, " distance %u %s %s", odistance->distance,
prefix2str (&rn->p, buf, sizeof (buf)),
- odistance->access_list ? odistance->access_list : "",
- VTY_NEWLINE);
+ odistance->access_list ? odistance->access_list : "");
}
return 0;
}
@@ -1031,13 +1029,13 @@ config_write_ospf6 (struct vty *vty)
if (CHECK_FLAG(ospf6->config_flags, OSPF6_LOG_ADJACENCY_CHANGES))
{
if (CHECK_FLAG(ospf6->config_flags, OSPF6_LOG_ADJACENCY_DETAIL))
- vty_out(vty, " log-adjacency-changes detail%s", VTY_NEWLINE);
+ vty_outln (vty, " log-adjacency-changes detail");
else if (!DFLT_OSPF6_LOG_ADJACENCY_CHANGES)
- vty_out(vty, " log-adjacency-changes%s", VTY_NEWLINE);
+ vty_outln (vty, " log-adjacency-changes");
}
else if (DFLT_OSPF6_LOG_ADJACENCY_CHANGES)
{
- vty_out(vty, " no log-adjacency-changes%s", VTY_NEWLINE);
+ vty_outln (vty, " no log-adjacency-changes");
}
if (ospf6->ref_bandwidth != OSPF6_REFERENCE_BANDWIDTH)
@@ -1046,8 +1044,7 @@ config_write_ospf6 (struct vty *vty)
/* LSA timers print. */
if (ospf6->lsa_minarrival != OSPF_MIN_LS_ARRIVAL)
- vty_out (vty, " timers lsa min-arrival %d%s", ospf6->lsa_minarrival,
- VTY_NEWLINE);
+ vty_outln (vty, " timers lsa min-arrival %d",ospf6->lsa_minarrival);
ospf6_stub_router_config_write (vty);
ospf6_redistribute_config_write (vty);