summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-13 20:17:06 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-07-14 10:20:03 +0200
commit625e016d14073dfefb69c0fa36cddb81fbe034ed (patch)
tree025bb557646390501de37e86d3813c111ec25d31 /ospf6d
parent*: remove VTYNL, part 5 of 6 (diff)
downloadfrr-625e016d14073dfefb69c0fa36cddb81fbe034ed.tar.xz
frr-625e016d14073dfefb69c0fa36cddb81fbe034ed.zip
*: remove VTYNL, part 6 of 6
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_asbr.c4
-rw-r--r--ospf6d/ospf6_top.c16
-rw-r--r--ospf6d/ospf6d.c118
3 files changed, 69 insertions, 69 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index 795c7f5ff..038ac53d6 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -1269,8 +1269,8 @@ ospf6_as_external_lsa_show (struct vty *vty, struct ospf6_lsa *lsa)
/* Tag */
if (CHECK_FLAG (external->bits_metric, OSPF6_ASBR_BIT_T))
{
- vty_out (vty, " Tag: %"ROUTE_TAG_PRI"%s",
- ospf6_as_external_lsa_get_tag (lsa), VTYNL);
+ vty_out (vty, " Tag: %"ROUTE_TAG_PRI"\n",
+ ospf6_as_external_lsa_get_tag (lsa));
}
return 0;
diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c
index 6acaf35e9..9e0b86b7b 100644
--- a/ospf6d/ospf6_top.c
+++ b/ospf6d/ospf6_top.c
@@ -814,14 +814,14 @@ ospf6_show (struct vty *vty, struct ospf6 *o)
vty_out (vty, " LSA minimum arrival %d msecs\n",o->lsa_minarrival);
/* Show SPF parameters */
- vty_out(vty, " Initial SPF scheduling delay %d millisec(s)%s"
- " Minimum hold time between consecutive SPFs %d millsecond(s)%s"
- " Maximum hold time between consecutive SPFs %d millsecond(s)%s"
- " Hold time multiplier is currently %d%s",
- o->spf_delay, VTYNL,
- o->spf_holdtime, VTYNL,
- o->spf_max_holdtime, VTYNL,
- o->spf_hold_multiplier, VTYNL);
+ vty_out(vty, " Initial SPF scheduling delay %d millisec(s)\n"
+ " Minimum hold time between consecutive SPFs %d millsecond(s)\n"
+ " Maximum hold time between consecutive SPFs %d millsecond(s)\n"
+ " Hold time multiplier is currently %d\n",
+ o->spf_delay,
+ o->spf_holdtime,
+ o->spf_max_holdtime,
+ o->spf_hold_multiplier);
vty_out(vty, " SPF algorithm ");
if (o->ts_spf.tv_sec || o->ts_spf.tv_usec)
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c
index 13fb0ae3c..c4a499031 100644
--- a/ospf6d/ospf6d.c
+++ b/ospf6d/ospf6d.c
@@ -115,11 +115,11 @@ config_write_ospf6_debug (struct vty *vty)
}
#define AREA_LSDB_TITLE_FORMAT \
- "%s Area Scoped Link State Database (Area %s)%s%s"
+ "\n Area Scoped Link State Database (Area %s)\n\n"
#define IF_LSDB_TITLE_FORMAT \
- "%s I/F Scoped Link State Database (I/F %s in Area %s)%s%s"
+ "\n I/F Scoped Link State Database (I/F %s in Area %s)\n\n"
#define AS_LSDB_TITLE_FORMAT \
- "%s AS Scoped Link State Database%s%s"
+ "\n AS Scoped Link State Database\n\n"
static int
parse_show_level (int idx_level, int argc, struct cmd_token **argv)
@@ -189,7 +189,7 @@ DEFUN (show_ipv6_ospf6_database,
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, NULL, NULL, NULL, oa->lsdb);
}
@@ -197,13 +197,13 @@ DEFUN (show_ipv6_ospf6_database,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, NULL, NULL, NULL, oi->lsdb);
}
}
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, NULL, NULL, NULL, o->lsdb);
vty_out (vty, "\n");
@@ -250,7 +250,7 @@ DEFUN (show_ipv6_ospf6_database_type,
case OSPF6_SCOPE_AREA:
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, &type, NULL, NULL, oa->lsdb);
}
break;
@@ -260,15 +260,15 @@ DEFUN (show_ipv6_ospf6_database_type,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, &type, NULL, NULL, oi->lsdb);
}
}
break;
case OSPF6_SCOPE_AS:
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, &type, NULL, NULL, o->lsdb);
break;
@@ -313,7 +313,7 @@ DEFUN (show_ipv6_ospf6_database_id,
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, NULL, &id, NULL, oa->lsdb);
}
@@ -321,13 +321,13 @@ DEFUN (show_ipv6_ospf6_database_id,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, NULL, &id, NULL, oi->lsdb);
}
}
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, NULL, &id, NULL, o->lsdb);
vty_out (vty, "\n");
@@ -364,7 +364,7 @@ DEFUN (show_ipv6_ospf6_database_router,
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, NULL, NULL, &adv_router, oa->lsdb);
}
@@ -372,13 +372,13 @@ DEFUN (show_ipv6_ospf6_database_router,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, NULL, NULL, &adv_router, oi->lsdb);
}
}
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, NULL, NULL, &adv_router, o->lsdb);
vty_out (vty, "\n");
@@ -430,7 +430,7 @@ DEFUN (show_ipv6_ospf6_database_type_id,
case OSPF6_SCOPE_AREA:
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, NULL, oa->lsdb);
}
break;
@@ -440,15 +440,15 @@ DEFUN (show_ipv6_ospf6_database_type_id,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, NULL, oi->lsdb);
}
}
break;
case OSPF6_SCOPE_AS:
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, &type, &id, NULL, o->lsdb);
break;
@@ -507,7 +507,7 @@ DEFUN (show_ipv6_ospf6_database_type_router,
case OSPF6_SCOPE_AREA:
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, &type, NULL, &adv_router, oa->lsdb);
}
break;
@@ -517,15 +517,15 @@ DEFUN (show_ipv6_ospf6_database_type_router,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, &type, NULL, &adv_router, oi->lsdb);
}
}
break;
case OSPF6_SCOPE_AS:
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, &type, NULL, &adv_router, o->lsdb);
break;
@@ -572,7 +572,7 @@ DEFUN (show_ipv6_ospf6_database_id_router,
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, NULL, &id, &adv_router, oa->lsdb);
}
@@ -580,13 +580,13 @@ DEFUN (show_ipv6_ospf6_database_id_router,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, NULL, &id, &adv_router, oi->lsdb);
}
}
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, NULL, &id, &adv_router, o->lsdb);
vty_out (vty, "\n");
@@ -627,7 +627,7 @@ DEFUN (show_ipv6_ospf6_database_adv_router_linkstate_id,
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, NULL, &id, &adv_router, oa->lsdb);
}
@@ -635,13 +635,13 @@ DEFUN (show_ipv6_ospf6_database_adv_router_linkstate_id,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, NULL, &id, &adv_router, oi->lsdb);
}
}
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, NULL, &id, &adv_router, o->lsdb);
vty_out (vty, "\n");
@@ -694,7 +694,7 @@ DEFUN (show_ipv6_ospf6_database_type_id_router,
case OSPF6_SCOPE_AREA:
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, oa->lsdb);
}
break;
@@ -704,15 +704,15 @@ DEFUN (show_ipv6_ospf6_database_type_id_router,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, oi->lsdb);
}
}
break;
case OSPF6_SCOPE_AS:
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, o->lsdb);
break;
@@ -774,7 +774,7 @@ DEFUN (show_ipv6_ospf6_database_type_adv_router_linkstate_id,
case OSPF6_SCOPE_AREA:
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, oa->lsdb);
}
break;
@@ -784,15 +784,15 @@ DEFUN (show_ipv6_ospf6_database_type_adv_router_linkstate_id,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, oi->lsdb);
}
}
break;
case OSPF6_SCOPE_AS:
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, o->lsdb);
break;
@@ -831,7 +831,7 @@ DEFUN (show_ipv6_ospf6_database_self_originated,
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, NULL, NULL, &adv_router, oa->lsdb);
}
@@ -839,13 +839,13 @@ DEFUN (show_ipv6_ospf6_database_self_originated,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, NULL, NULL, &adv_router, oi->lsdb);
}
}
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, NULL, NULL, &adv_router, o->lsdb);
vty_out (vty, "\n");
@@ -896,7 +896,7 @@ DEFUN (show_ipv6_ospf6_database_type_self_originated,
case OSPF6_SCOPE_AREA:
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, &type, NULL, &adv_router, oa->lsdb);
}
break;
@@ -906,15 +906,15 @@ DEFUN (show_ipv6_ospf6_database_type_self_originated,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, &type, NULL, &adv_router, oi->lsdb);
}
}
break;
case OSPF6_SCOPE_AS:
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, &type, NULL, &adv_router, o->lsdb);
break;
@@ -974,7 +974,7 @@ DEFUN (show_ipv6_ospf6_database_type_self_originated_linkstate_id,
case OSPF6_SCOPE_AREA:
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, oa->lsdb);
}
break;
@@ -984,15 +984,15 @@ DEFUN (show_ipv6_ospf6_database_type_self_originated_linkstate_id,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, oi->lsdb);
}
}
break;
case OSPF6_SCOPE_AS:
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, o->lsdb);
break;
@@ -1051,7 +1051,7 @@ DEFUN (show_ipv6_ospf6_database_type_id_self_originated,
case OSPF6_SCOPE_AREA:
for (ALL_LIST_ELEMENTS_RO (o->area_list, i, oa))
{
- vty_out (vty, AREA_LSDB_TITLE_FORMAT, VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, AREA_LSDB_TITLE_FORMAT, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, oa->lsdb);
}
break;
@@ -1061,15 +1061,15 @@ DEFUN (show_ipv6_ospf6_database_type_id_self_originated,
{
for (ALL_LIST_ELEMENTS_RO (oa->if_list, j, oi))
{
- vty_out (vty, IF_LSDB_TITLE_FORMAT, VTYNL,
- oi->interface->name, oa->name, VTYNL, VTYNL);
+ vty_out (vty, IF_LSDB_TITLE_FORMAT,
+ oi->interface->name, oa->name);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, oi->lsdb);
}
}
break;
case OSPF6_SCOPE_AS:
- vty_out (vty, AS_LSDB_TITLE_FORMAT, VTYNL, VTYNL, VTYNL);
+ vty_out (vty, AS_LSDB_TITLE_FORMAT);
ospf6_lsdb_show (vty, level, &type, &id, &adv_router, o->lsdb);
break;