vty_out (vty,
"Status codes: s suppressed, d damped, h history, * valid, > best, i - internal\n");
vty_out (vty,
- "Origin codes: i - IGP, e - EGP, ? - incomplete%s\n",
- VTYNL);
+ "Origin codes: i - IGP, e - EGP, ? - incomplete\n\n");
vty_out(vty, V4_HEADER);
}
}
vty_out (vty, "No prefixes displayed, %ld exist\n",
total_count);
else
- vty_out (vty, "%sDisplayed %ld out of %ld total prefixes\n",
- VTYNL, output_count, total_count);
+ vty_out (vty, "\nDisplayed %ld out of %ld total prefixes\n", output_count, total_count);
return CMD_SUCCESS;
}
inet_ntoa(bgp->router_id));
vty_out (vty,
"Status codes: s suppressed, d damped, h history, * valid, > best, i - internal\n");
- vty_out (vty, "Origin codes: i - IGP, e - EGP, ? - incomplete%s\n",
- VTYNL);
+ vty_out (vty, "Origin codes: i - IGP, e - EGP, ? - incomplete\n\n");
vty_out (vty, V4_HEADER);
}
}
if (output_count == 0)
vty_out (vty, "No prefixes displayed, %ld exist\n", total_count);
else
- vty_out (vty, "%sDisplayed %ld routes and %ld total paths\n",
- VTYNL, output_count, total_count);
+ vty_out (vty, "\nDisplayed %ld routes and %ld total paths\n", output_count, total_count);
}
return CMD_SUCCESS;
for (ALL_LIST_ELEMENTS (bm->bgp, node, nnode, bgp))
{
- vty_out (vty, "%sInstance %s:\n",
- VTYNL,
+ vty_out (vty, "\nInstance %s:\n",
(bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT) ? "Default" : bgp->name);
bgp_show_nexthops (vty, bgp, 0);
}
len = 17 - len;
if (len < 1)
- vty_out (vty, "%s%*s", VTYNL, 20, " ");
+ vty_out (vty, "\n%*s", 20, " ");
else
vty_out (vty, "%*s", len, " ");
}
len = 7 - len; /* len of IPv6 addr + max len of def ifname */
if (len < 1)
- vty_out (vty, "%s%*s", VTYNL, 45, " ");
+ vty_out (vty, "\n%*s", 45, " ");
else
vty_out (vty, "%*s", len, " ");
}
len = 16 - len;
if (len < 1)
- vty_out (vty, "%s%*s", VTYNL, 36, " ");
+ vty_out (vty, "\n%*s", 36, " ");
else
vty_out (vty, "%*s", len, " ");
}
len = 16 - len;
if (len < 1)
- vty_out (vty, "%s%*s", VTYNL, 36, " ");
+ vty_out (vty, "\n%*s", 36, " ");
else
vty_out (vty, "%*s", len, " ");
}
buf, BUFSIZ));
len = 16 - len;
if (len < 1)
- vty_out (vty, "%s%*s", VTYNL, 36, " ");
+ vty_out (vty, "\n%*s", 36, " ");
else
vty_out (vty, "%*s", len, " ");
}
if (len < 1)
{
if (!use_json)
- vty_out (vty, "%s%*s", VTYNL, 34, " ");
+ vty_out (vty, "\n%*s", 34, " ");
}
else
{
if (len < 1)
{
if (!use_json)
- vty_out (vty, "%s%*s", VTYNL, 33, " ");
+ vty_out (vty, "\n%*s", 33, " ");
}
else
{
total_count);
}
else
- vty_out (vty, "%sDisplayed %ld routes and %ld total paths\n",
- VTYNL, output_count, total_count);
+ vty_out (vty, "\nDisplayed %ld routes and %ld total paths\n", output_count, total_count);
}
return CMD_SUCCESS;
}
else
{
- vty_out (vty, "%sInstance %s:\n",
- VTYNL,
+ vty_out (vty, "\nInstance %s:\n",
(bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT) ? "Default" : bgp->name);
}
bgp_show (vty, bgp, afi, safi, bgp_show_type_normal, NULL, use_json);
}
vty_out (vty, "PfxCt: %ld\n", peer->pcount[afi][safi]);
- vty_out (vty, "%sCounts from RIB table walk:%s\n",
- VTYNL, VTYNL);
+ vty_out (vty, "\nCounts from RIB table walk:\n\n");
for (i = 0; i < PCOUNT_MAX; i++)
vty_out (vty, "%20s: %-10d\n", pcount_strs[i], pcounts.count[i]);
vty_out (vty, BGP_SHOW_SCODE_HEADER);
vty_out (vty, BGP_SHOW_OCODE_HEADER);
- vty_out (vty, "Originating default network 0.0.0.0%s\n",
- VTYNL);
+ vty_out (vty, "Originating default network 0.0.0.0\n\n");
}
header1 = 0;
}
if (use_json)
json_object_int_add(json, "totalPrefixCounter", output_count);
else
- vty_out (vty, "%sTotal number of prefixes %ld\n",
- VTYNL, output_count);
+ vty_out (vty, "\nTotal number of prefixes %ld\n", output_count);
}
if (use_json)
{
}
}
if (output_count != 0)
- vty_out (vty, "%sTotal number of prefixes %ld\n",
- VTYNL, output_count);
+ vty_out (vty, "\nTotal number of prefixes %ld\n", output_count);
}
static int
inet_ntoa(bgp->router_id));
vty_out (vty,
"Status codes: s suppressed, d damped, h history, * valid, > best, i - internal\n");
- vty_out (vty, "Origin codes: i - IGP, e - EGP, ? - incomplete%s\n",
- VTYNL);
+ vty_out (vty, "Origin codes: i - IGP, e - EGP, ? - incomplete\n\n");
vty_out (vty, V4_HEADER);
}
header = 0;
else
{
if (count)
- vty_out (vty, "%sTotal number of VRFs (including default): %d%s",
- VTYNL, count, VTYNL);
+ vty_out (vty, "\nTotal number of VRFs (including default): %d%s", count, VTYNL);
}
return CMD_SUCCESS;
else
{
if (count)
- vty_out (vty, "%sTotal number of neighbors %d%s", VTYNL,
+ vty_out (vty, "\nTotal number of neighbors %d%s",
count, VTYNL);
else
{
}
else
{
- vty_out (vty, "%s%s Summary:%s",
- VTYNL, afi_safi_print(afi, safi), VTYNL);
+ vty_out (vty, "\n%s Summary:%s", afi_safi_print(afi, safi), VTYNL);
}
}
bgp_show_summary (vty, bgp, afi, safi, use_json, json);
}
else
{
- vty_out (vty, "%sInstance %s:%s",
- VTYNL,
+ vty_out (vty, "\nInstance %s:%s",
(bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT)
? "Default" : bgp->name, VTYNL);
}
if (CHECK_FLAG (p->cap, PEER_CAP_ENHE_RCV))
{
- vty_out (vty, " Address families by peer:%s ", VTYNL);
+ vty_out (vty, " Address families by peer:\n ");
for (safi = SAFI_UNICAST ; safi < SAFI_MAX ; safi++)
if (CHECK_FLAG (p->af_cap[AFI_IP][safi], PEER_CAP_ENHE_AF_RCV))
vty_out (vty, " %s%s",
vty_out (vty, " Remote Restart timer is %d seconds%s",
p->v_gr_restart, VTYNL);
- vty_out (vty, " Address families by peer:%s ", VTYNL);
+ vty_out (vty, " Address families by peer:\n ");
for (afi = AFI_IP ; afi < AFI_MAX ; afi++)
for (safi = SAFI_UNICAST ; safi < SAFI_MAX ; safi++)
if (p->last_reset_cause_size)
{
msg = p->last_reset_cause;
- vty_out(vty, " Message received that caused BGP to send a NOTIFICATION:%s ", VTYNL);
+ vty_out(vty, " Message received that caused BGP to send a NOTIFICATION:\n ");
for (i = 1; i <= p->last_reset_cause_size; i++)
{
vty_out(vty, "%02X", *msg++);
{
if (i % 16 == 0)
{
- vty_out(vty, "%s ", VTYNL);
+ vty_out(vty, "\n ");
}
else if (i % 4 == 0)
{
}
else
{
- vty_out (vty, "%sInstance %s:%s",
- VTYNL,
+ vty_out (vty, "\nInstance %s:%s",
(bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT)
? "Default" : bgp->name,
VTYNL);
for (ALL_LIST_ELEMENTS (bm->bgp, node, nnode, bgp))
{
- vty_out (vty, "%sInstance %s:%s",
- VTYNL,
+ vty_out (vty, "\nInstance %s:%s",
(bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT) ? "Default" : bgp->name,
VTYNL);
update_group_show(bgp, afi, safi, vty, 0);
if (conf->as_type == AS_SPECIFIED ||
conf->as_type == AS_EXTERNAL) {
- vty_out (vty, "%sBGP peer-group %s, remote AS %d%s",
- VTYNL, group->name, conf->as, VTYNL);
+ vty_out (vty, "\nBGP peer-group %s, remote AS %d%s", group->name, conf->as, VTYNL);
} else if (conf->as_type == AS_INTERNAL) {
- vty_out (vty, "%sBGP peer-group %s, remote AS %d%s",
- VTYNL, group->name, group->bgp->as, VTYNL);
+ vty_out (vty, "\nBGP peer-group %s, remote AS %d%s", group->name, group->bgp->as, VTYNL);
} else {
- vty_out (vty, "%sBGP peer-group %s%s",
- VTYNL, group->name, VTYNL);
+ vty_out (vty, "\nBGP peer-group %s%s", group->name, VTYNL);
}
if ((group->bgp->as == conf->as) || (conf->as_type == AS_INTERNAL))
if (*write)
return;
- vty_out (vty, " !%s address-family ", VTYNL);
+ vty_out (vty, " !\n address-family ");
if (afi == AFI_IP)
{
lni = lni_as_ptr;
if (first_l2)
{
- vty_out (vty, "%sLNI-based Ethernet Tables:\n",
- VTYNL);
+ vty_out (vty, "\nLNI-based Ethernet Tables:\n");
first_l2 = 0;
}
snprintf (buf, BUFSIZ, "L2VPN LNI=%u", lni);
show_ip_eigrp_interface_header (struct vty *vty, struct eigrp *eigrp)
{
- vty_out (vty, "%s%s%d%s%s%s %-10s %-10s %-10s %-6s %-12s %-7s %-14s %-12s %-8s %-8s %-8s%s %-39s %-12s %-7s %-14s %-12s %-8s\n",
- VTYNL,
+ vty_out (vty, "\n%s%d%s%s%s %-10s %-10s %-10s %-6s %-12s %-7s %-14s %-12s %-8s %-8s %-8s%s %-39s %-12s %-7s %-14s %-12s %-8s\n",
"EIGRP interfaces for AS(",eigrp->AS,")",VTYNL,VTYNL,
"Interface", "Bandwidth", "Delay", "Peers", "Xmit Queue", "Mean",
"Pacing Time", "Multicast", "Pending", "Hello", "Holdtime",
void
show_ip_eigrp_neighbor_header (struct vty *vty, struct eigrp *eigrp)
{
- vty_out (vty, "%s%s%d%s%s%s%-3s %-17s %-20s %-6s %-8s %-6s %-5s %-5s %-5s%s %-41s %-6s %-8s %-6s %-4s %-6s %-5s \n",
- VTYNL,
+ vty_out (vty, "\n%s%d%s%s%s%-3s %-17s %-20s %-6s %-8s %-6s %-5s %-5s %-5s%s %-41s %-6s %-8s %-6s %-4s %-6s %-5s \n",
"EIGRP neighbors for AS(",eigrp->AS,")",VTYNL,VTYNL,
"H", "Address", "Interface", "Hold", "Uptime",
"SRTT", "RTO", "Q", "Seq", VTYNL
struct in_addr router_id;
router_id.s_addr = eigrp->router_id;
- vty_out (vty, "%sEIGRP Topology Table for AS(%d)/ID(%s)%s\n",
- VTYNL, eigrp->AS, inet_ntoa(router_id), VTYNL);
+ vty_out (vty, "\nEIGRP Topology Table for AS(%d)/ID(%s)%s\n", eigrp->AS, inet_ntoa(router_id), VTYNL);
vty_out (vty, "Codes: P - Passive, A - Active, U - Update, Q - Query, "
"R - Reply%s r - reply Status, s - sia Status%s\n",
VTYNL, VTYNL);
vty_out (vty, " %#.2x", v[i]);
if (rtn == 8)
{
- vty_out (vty, "%s [%.2x]", VTYNL, i + 1);
+ vty_out (vty, "\n [%.2x]", i + 1);
rtn = 1;
}
else
show_vty_subtlv_res_bw (vty, &mtc->res_bw);
show_vty_subtlv_ava_bw (vty, &mtc->ava_bw);
show_vty_subtlv_use_bw (vty, &mtc->use_bw);
- vty_out (vty, "---------------%s\n", VTYNL);
+ vty_out (vty, "---------------\n\n");
}
else
{
vty_out(vty, "%-8s %-15s ", "Targeted", addr);
if (strlen(addr) > 15)
- vty_out(vty, "%s%46s", VTYNL, " ");
+ vty_out(vty, "\n%46s", " ");
break;
}
vty_out (vty, "%9u\n", adj->holdtime);
af_name(nbr->af), inet_ntoa(nbr->id),
nbr_state_name(nbr->nbr_state), addr);
if (strlen(addr) > 15)
- vty_out(vty, "%s%48s", VTYNL, " ");
+ vty_out(vty, "\n%48s", " ");
vty_out (vty, " %8s\n", log_time(nbr->uptime));
break;
case IMSG_CTL_END:
vty_out(vty, "%-4s %-20s", af_name(rt->af), dstnet);
if (strlen(dstnet) > 20)
- vty_out(vty, "%s%25s", VTYNL, " ");
+ vty_out(vty, "\n%25s", " ");
vty_out (vty, " %-15s %-11s %-13s %6s\n", inet_ntoa(rt->nexthop),
log_label(rt->local_label), log_label(rt->remote_label),
rt->in_use ? "yes" : "no");
vty_out (vty, "%s %s (%s).\n", FRR_FULL_NAME, FRR_VERSION,
host.name ? host.name : "");
vty_out (vty, "%s%s\n", FRR_COPYRIGHT, GIT_INFO);
- vty_out (vty, "configured with:%s %s\n", VTYNL,
+ vty_out (vty, "configured with:\n %s\n",
FRR_CONFIG_ARGS);
return CMD_SUCCESS;
"Description of the interactive help system\n")
{
vty_out (vty,
- "Quagga VTY provides advanced help feature. When you need help,%s\
-anytime at the command line please press '?'.%s\
-%s\
-If nothing matches, the help list will be empty and you must backup%s\
- until entering a '?' shows the available options.%s\
-Two styles of help are provided:%s\
-1. Full help is available when you are ready to enter a%s\
-command argument (e.g. 'show ?') and describes each possible%s\
-argument.%s\
-2. Partial help is provided when an abbreviated argument is entered%s\
- and you want to know what arguments match the input%s\
- (e.g. 'show me?'.)%s\n", VTYNL, VTYNL, VTYNL,
- VTYNL, VTYNL, VTYNL, VTYNL, VTYNL,
- VTYNL, VTYNL, VTYNL, VTYNL);
+ "Quagga VTY provides advanced help feature. When you need help,\n\
+anytime at the command line please press '?'.\n\
+\n\
+If nothing matches, the help list will be empty and you must backup\n\
+ until entering a '?' shows the available options.\n\
+Two styles of help are provided:\n\
+1. Full help is available when you are ready to enter a\n\
+command argument (e.g. 'show ?') and describes each possible\n\
+argument.\n\
+2. Partial help is provided when an abbreviated argument is entered\n\
+ and you want to know what arguments match the input\n\
+ (e.g. 'show me?'.)\n\n");
return CMD_SUCCESS;
}
if (vty->type == VTY_TERM)
{
- vty_out (vty, "%sCurrent configuration:\n",VTYNL);
+ vty_out (vty, "\nCurrent configuration:\n");
vty_out (vty, "!\n");
}
if (!vrf->iflist || !listcount (vrf->iflist))
continue;
- vty_out (vty, "%sVRF %u%s%s", VTYNL, vrf->vrf_id, VTYNL,
+ vty_out (vty, "\nVRF %u%s%s", vrf->vrf_id, VTYNL,
VTYNL);
for (ALL_LIST_ELEMENTS_RO (vrf->iflist, node, ifp))
/* Description */
if (index->description)
- vty_out (vty, " Description:%s %s\n", VTYNL,
+ vty_out (vty, " Description:\n %s\n",
index->description);
/* Match clauses */
/* Say hello to the world. */
vty_hello (vty);
if (! no_password_check)
- vty_out (vty, "%sUser Access Verification%s\n", VTYNL,
- VTYNL);
+ vty_out (vty, "\nUser Access Verification\n\n");
/* Setting up terminal. */
vty_will_echo (vty);
/* Clear buffer*/
buffer_reset (vty->obuf);
- vty_out (vty, "%sVty connection is timed out.\n", VTYNL);
+ vty_out (vty, "\nVty connection is timed out.\n");
/* Close connection. */
vty->status = VTY_CLOSE;
} else if (argv[3]->text[0] == 's') {
nhrp_shortcut_foreach(ctx.afi, show_ip_nhrp_shortcut, &ctx);
} else {
- vty_out (vty, "Status: ok%s\n", VTYNL);
+ vty_out (vty, "Status: ok\n\n");
ctx.count++;
for (ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), node, ifp))
nhrp_cache_foreach(ifp, show_ip_opennhrp_cache, &ctx);
for (current = start; current < end; current ++)
{
if ((current - start) % 16 == 0)
- vty_out (vty, "%s ", VTYNL);
+ vty_out (vty, "\n ");
else if ((current - start) % 4 == 0)
vty_out (vty, " ");
vty_out (vty, "%s", byte);
}
- vty_out (vty, "%s%s", VTYNL, VTYNL);
+ vty_out (vty, "\n\n");
return 0;
}
for (current = start; current < end; current ++)
{
if ((current - start) % 16 == 0)
- vty_out (vty, "%s ", VTYNL);
+ vty_out (vty, "\n ");
else if ((current - start) % 4 == 0)
vty_out (vty, " ");
vty_out (vty, "%s", byte);
}
- vty_out (vty, "%s%s", VTYNL, VTYNL);
+ vty_out (vty, "\n\n");
return;
}
for (ALL_LIST_ELEMENTS_RO (ospf6->area_list, node, oa))
{
- vty_out (vty, "%s SPF Result in Area %s%s%s",
- VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, "\n SPF Result in Area %s%s%s", oa->name, VTYNL, VTYNL);
ospf6_linkstate_table_show (vty, idx_ipv4, argc, argv, oa->spf_table);
}
for (ALL_LIST_ELEMENTS_RO (ospf6->area_list, node, oa))
{
- vty_out (vty, "%s SPF Result in Area %s%s%s",
- VTYNL, oa->name, VTYNL, VTYNL);
+ vty_out (vty, "\n SPF Result in Area %s%s%s", oa->name, VTYNL, VTYNL);
ospf6_linkstate_table_show (vty, idx_detail, argc, argv, oa->spf_table);
}
int i;
if (ospf->instance)
- vty_out (vty, "%sOSPF Instance: %d%s\n", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s\n", ospf->instance,
VTYNL);
vty_out (vty, "OSPF debugging status:\n");
show_vty_link_subtlv_ava_bw (vty, &lp->ava_bw.header);
if (TLV_TYPE(lp->use_bw) != 0)
show_vty_link_subtlv_use_bw (vty, &lp->use_bw.header);
- vty_out (vty, "---------------%s\n", VTYNL);
+ vty_out (vty, "---------------\n\n");
}
else
{
if (area_id.s_addr == OSPF_AREA_BACKBONE)
{
vty_out (vty,
- "Configuring VLs over the backbone is not allowed%s",
- VTYNL);
+ "Configuring VLs over the backbone is not allowed\n");
return NULL;
}
area = ospf_area_get (ospf, area_id);
}
else
{
- vty_out (vty, " It is an NSSA configuration. %s Elected NSSA/ABR performs type-7/type-5 LSA translation. %s", VTYNL, VTYNL);
+ vty_out (vty, " It is an NSSA configuration. \n Elected NSSA/ABR performs type-7/type-5 LSA translation. \n");
if (! IS_OSPF_ABR (area->ospf))
vty_out (vty, " It is not ABR, therefore not Translator. \n");
else if (area->NSSATranslatorState)
}
else
{
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
}
if (use_json)
json_object_int_add(json, "ospfInstance", ospf->instance);
else
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
static void
show_ip_ospf_neighbour_header (struct vty *vty)
{
- vty_out (vty, "%s%-15s %3s %-15s %9s %-15s %-20s %5s %5s %5s%s",
- VTYNL,
+ vty_out (vty, "\n%-15s %3s %-15s %9s %-15s %-20s %5s %5s %5s%s",
"Neighbor ID", "Pri", "State", "Dead Time",
"Address", "Interface", "RXmtL", "RqstL", "DBsmL",
VTYNL);
if (use_json)
json_object_int_add(json, "ospfInstance", ospf->instance);
else
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
if (use_json)
json_object_int_add(json, "ospfInstance", ospf->instance);
else
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
if (use_json)
json_object_int_add(json, "ospfInstance", ospf->instance);
else
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
if (use_json)
json_object_int_add(json, "ospfInstance", ospf->instance);
else
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
if (use_json)
json_object_int_add(json, "ospfInstance", ospf->instance);
else
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
if (use_json)
json_object_int_add(json, "ospfInstance", ospf->instance);
else
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
if (use_json)
json_object_int_add(json, "ospfInstance", ospf->instance);
else
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
}
default:
for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
{
- vty_out (vty, "%s %s (Area %s)%s%s",
- VTYNL, show_database_desc[type],
+ vty_out (vty, "\n %s (Area %s)%s%s", show_database_desc[type],
ospf_area_desc_string (area), VTYNL, VTYNL);
show_lsa_detail_proc (vty, AREA_LSDB (area, type), id, adv_router);
}
default:
for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
{
- vty_out (vty, "%s %s (Area %s)%s%s",
- VTYNL, show_database_desc[type],
+ vty_out (vty, "\n %s (Area %s)%s%s", show_database_desc[type],
ospf_area_desc_string (area), VTYNL, VTYNL);
show_lsa_detail_adv_router_proc (vty, AREA_LSDB (area, type),
adv_router);
{
struct route_node *rn;
- vty_out (vty, "%s MaxAge Link States:%s%s",
- VTYNL, VTYNL, VTYNL);
+ vty_out (vty, "\n MaxAge Link States:\n\n");
for (rn = route_top (ospf->maxage_lsa); rn; rn = route_next (rn))
{
struct in_addr id, adv_router;
if (ospf->instance)
- vty_out (vty, "%sOSPF Instance: %d%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s", ospf->instance,
VTYNL);
- vty_out (vty, "%s OSPF Router with ID (%s)%s%s", VTYNL,
+ vty_out (vty, "\n OSPF Router with ID (%s)%s%s",
inet_ntoa (ospf->router_id), VTYNL, VTYNL);
/* Show all LSA. */
struct in_addr adv_router;
if (ospf->instance)
- vty_out (vty, "%sOSPF Instance: %d%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s", ospf->instance,
VTYNL);
- vty_out (vty, "%s OSPF Router with ID (%s)%s%s", VTYNL,
+ vty_out (vty, "\n OSPF Router with ID (%s)%s%s",
inet_ntoa (ospf->router_id), VTYNL, VTYNL);
/* Set database type to show. */
if (OSPF_IF_PARAM_CONFIGURED(params, if_area))
{
vty_out (vty,
- "Must remove previous area config before changing ospf area %s",
- VTYNL);
+ "Must remove previous area config before changing ospf area \n");
return CMD_WARNING;
}
show_ip_ospf_border_routers_common (struct vty *vty, struct ospf *ospf)
{
if (ospf->instance)
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
if (ospf->new_table == NULL)
show_ip_ospf_route_common (struct vty *vty, struct ospf *ospf)
{
if (ospf->instance)
- vty_out (vty, "%sOSPF Instance: %d%s%s", VTYNL, ospf->instance,
+ vty_out (vty, "\nOSPF Instance: %d%s%s", ospf->instance,
VTYNL, VTYNL);
if (ospf->new_table == NULL)
json = json_object_new_object();
} else {
vty_out(vty, "Codes: J -> Pim Join, I -> IGMP Report, S -> Source, * -> Inherited from (*,G)");
- vty_out (vty, "%sInstalled Source Group IIF OIL\n",
- VTYNL);
+ vty_out (vty, "\nInstalled Source Group IIF OIL\n");
}
for (ALL_LIST_ELEMENTS_RO(pim_channel_oil_list, node, c_oil)) {
fp = stdout;
vty_out (vty, "Building configuration...\n");
- vty_out (vty, "%sCurrent configuration:\n",VTYNL);
+ vty_out (vty, "\nCurrent configuration:\n");
vty_out (vty, "!\n");
for (i = 0; i < array_size(vtysh_client); i++)
ifp->ifindex, ifp->metric, ifp->mtu, ifp->speed);
if (ifp->mtu6 != ifp->mtu)
vty_out (vty, "mtu6 %d ", ifp->mtu6);
- vty_out (vty, "%s flags: %s\n", VTYNL,
+ vty_out (vty, "\n flags: %s\n",
if_flag_dump(ifp->flags));
/* Hardware address. */
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name)
if (!list_isempty (vrf->iflist))
{
- vty_out (vty, "%s\tVRF %u%s\n", VTYNL, vrf->vrf_id,
+ vty_out (vty, "\n\tVRF %u%s\n", vrf->vrf_id,
VTYNL);
if_show_description (vty, vrf->vrf_id);
}
zfpm_stats_t total_stats;
time_t elapsed;
- vty_out (vty, "%s%-40s %10s Last %2d secs%s\n", VTYNL, "Counter",
+ vty_out (vty, "\n%-40s %10s Last %2d secs%s\n", "Counter",
"Total", ZFPM_STATS_IVL_SECS, VTYNL);
/*
elapsed = zfpm_get_elapsed_time (zfpm_g->last_stats_clear_time);
- vty_out (vty, "%sStats were cleared %lu seconds ago\n", VTYNL,
+ vty_out (vty, "\nStats were cleared %lu seconds ago\n",
(unsigned long)elapsed);
}
vty_out (vty, SHOW_ROUTE_V6_HEADER);
if (zvrf_id (zvrf) != VRF_DEFAULT)
- vty_out (vty, "%sVRF %s:\n", VTYNL,
+ vty_out (vty, "\nVRF %s:\n",
zvrf_name(zvrf));
first = 0;
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name)
if ((zvrf = vrf->info) != NULL)
{
- vty_out (vty, "%sVRF %s:\n", VTYNL, zvrf_name(zvrf));
+ vty_out (vty, "\nVRF %s:\n", zvrf_name(zvrf));
zebra_print_rnh_table(zvrf_id (zvrf), AF_INET, vty, RNH_NEXTHOP_TYPE);
}
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name)
if ((zvrf = vrf->info) != NULL)
{
- vty_out (vty, "%sVRF %s:\n", VTYNL, zvrf_name(zvrf));
+ vty_out (vty, "\nVRF %s:\n", zvrf_name(zvrf));
zebra_print_rnh_table(zvrf_id (zvrf), AF_INET6, vty, RNH_NEXTHOP_TYPE);
}