|| strcmp (filter->dlist[in].name, gfilter->dlist[in].name) != 0)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s distribute-list %s in%s",
- addr, filter->dlist[in].name, VTYNL);
+ " neighbor %s distribute-list %s in\n",
+ addr, filter->dlist[in].name);
}
if (filter->dlist[out].name && ! gfilter)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s distribute-list %s out%s",
- addr, filter->dlist[out].name, VTYNL);
+ " neighbor %s distribute-list %s out\n",
+ addr, filter->dlist[out].name);
}
/* prefix-list. */
|| strcmp (filter->plist[in].name, gfilter->plist[in].name) != 0)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s prefix-list %s in%s",
- addr, filter->plist[in].name, VTYNL);
+ " neighbor %s prefix-list %s in\n",
+ addr, filter->plist[in].name);
}
if (filter->plist[out].name && ! gfilter)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s prefix-list %s out%s",
- addr, filter->plist[out].name, VTYNL);
+ " neighbor %s prefix-list %s out\n",
+ addr, filter->plist[out].name);
}
/* route-map. */
|| strcmp (filter->map[RMAP_IN].name, gfilter->map[RMAP_IN].name) != 0)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s route-map %s in%s",
- addr, filter->map[RMAP_IN].name, VTYNL);
+ " neighbor %s route-map %s in\n",
+ addr, filter->map[RMAP_IN].name);
}
if (filter->map[RMAP_OUT].name)
|| strcmp (filter->map[RMAP_OUT].name, gfilter->map[RMAP_OUT].name) != 0)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s route-map %s out%s",
- addr, filter->map[RMAP_OUT].name, VTYNL);
+ " neighbor %s route-map %s out\n",
+ addr, filter->map[RMAP_OUT].name);
}
/* unsuppress-map */
if (filter->usmap.name && ! gfilter)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s unsuppress-map %s%s",
- addr, filter->usmap.name, VTYNL);
+ " neighbor %s unsuppress-map %s\n",
+ addr, filter->usmap.name);
}
/* filter-list. */
|| strcmp (filter->aslist[in].name, gfilter->aslist[in].name) != 0)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s filter-list %s in%s",
- addr, filter->aslist[in].name, VTYNL);
+ " neighbor %s filter-list %s in\n",
+ addr, filter->aslist[in].name);
}
if (filter->aslist[out].name && ! gfilter)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s filter-list %s out%s",
- addr, filter->aslist[out].name, VTYNL);
+ " neighbor %s filter-list %s out\n",
+ addr, filter->aslist[out].name);
}
}
if (g_peer->afc[afi][safi] && !peer->afc[afi][safi])
{
afi_header_vty_out (vty, afi, safi, write,
- " no neighbor %s activate%s",
- addr, VTYNL);
+ " no neighbor %s activate\n",
+ addr);
}
/* If the peer-group is not active but peer is, print an 'activate' */
else if (!g_peer->afc[afi][safi] && peer->afc[afi][safi])
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s activate%s",
- addr, VTYNL);
+ " neighbor %s activate\n",
+ addr);
}
}
else
if (bgp_flag_check (bgp, BGP_FLAG_NO_DEFAULT_IPV4))
{
afi_header_vty_out(vty, afi, safi, write,
- " neighbor %s activate%s",
- addr, VTYNL);
+ " neighbor %s activate\n",
+ addr);
}
}
else
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s activate%s",
- addr, VTYNL);
+ " neighbor %s activate\n",
+ addr);
}
else
{
if (!bgp_flag_check (bgp, BGP_FLAG_NO_DEFAULT_IPV4))
{
afi_header_vty_out (vty, afi, safi, write,
- " no neighbor %s activate%s",
- addr, VTYNL);
+ " no neighbor %s activate\n",
+ addr);
}
}
}
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_ADDPATH_TX_ALL_PATHS))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s addpath-tx-all-paths%s",
- addr, VTYNL);
+ " neighbor %s addpath-tx-all-paths\n",
+ addr);
}
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_ADDPATH_TX_BESTPATH_PER_AS))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s addpath-tx-bestpath-per-AS%s",
- addr, VTYNL);
+ " neighbor %s addpath-tx-bestpath-per-AS\n",
+ addr);
}
/* ORF capability. */
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_REFLECTOR_CLIENT))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s route-reflector-client%s",
- addr, VTYNL);
+ " neighbor %s route-reflector-client\n",
+ addr);
}
/* next-hop-self force */
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_FORCE_NEXTHOP_SELF))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s next-hop-self force%s",
- addr, VTYNL);
+ " neighbor %s next-hop-self force\n",
+ addr);
}
/* next-hop-self */
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_NEXTHOP_SELF))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s next-hop-self%s",
- addr, VTYNL);
+ " neighbor %s next-hop-self\n",
+ addr);
}
/* remove-private-AS */
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s remove-private-AS all replace-AS%s",
- addr, VTYNL);
+ " neighbor %s remove-private-AS all replace-AS\n",
+ addr);
}
else if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s remove-private-AS replace-AS%s",
- addr, VTYNL);
+ " neighbor %s remove-private-AS replace-AS\n",
+ addr);
}
else if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_REMOVE_PRIVATE_AS_ALL))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s remove-private-AS all%s",
- addr, VTYNL);
+ " neighbor %s remove-private-AS all\n",
+ addr);
}
else if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_REMOVE_PRIVATE_AS))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s remove-private-AS%s",
- addr, VTYNL);
+ " neighbor %s remove-private-AS\n",
+ addr);
}
/* as-override */
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_AS_OVERRIDE))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s as-override%s",
- addr, VTYNL);
+ " neighbor %s as-override\n",
+ addr);
}
/* send-community print. */
&& peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_SEND_LARGE_COMMUNITY))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s send-community all%s",
- addr, VTYNL);
+ " neighbor %s send-community all\n",
+ addr);
}
else if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_SEND_LARGE_COMMUNITY))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s send-community large%s",
- addr, VTYNL);
+ " neighbor %s send-community large\n",
+ addr);
}
else if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_SEND_EXT_COMMUNITY))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s send-community extended%s",
- addr, VTYNL);
+ " neighbor %s send-community extended\n",
+ addr);
}
else if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_SEND_COMMUNITY))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s send-community%s",
- addr, VTYNL);
+ " neighbor %s send-community\n",
+ addr);
}
}
else
(!g_peer || peer_af_flag_check (g_peer, afi, safi, PEER_FLAG_SEND_LARGE_COMMUNITY)))
{
afi_header_vty_out (vty, afi, safi, write,
- " no neighbor %s send-community all%s",
- addr, VTYNL);
+ " no neighbor %s send-community all\n",
+ addr);
}
else
{
(!g_peer || peer_af_flag_check (g_peer, afi, safi, PEER_FLAG_SEND_LARGE_COMMUNITY)))
{
afi_header_vty_out (vty, afi, safi, write,
- " no neighbor %s send-community large%s",
- addr, VTYNL);
+ " no neighbor %s send-community large\n",
+ addr);
}
if (!peer_af_flag_check (peer, afi, safi, PEER_FLAG_SEND_EXT_COMMUNITY) &&
(!g_peer || peer_af_flag_check (g_peer, afi, safi, PEER_FLAG_SEND_EXT_COMMUNITY)))
{
afi_header_vty_out (vty, afi, safi, write,
- " no neighbor %s send-community extended%s",
- addr, VTYNL);
+ " no neighbor %s send-community extended\n",
+ addr);
}
if (!peer_af_flag_check (peer, afi, safi, PEER_FLAG_SEND_COMMUNITY) &&
(!g_peer || peer_af_flag_check (g_peer, afi, safi, PEER_FLAG_SEND_COMMUNITY)))
{
afi_header_vty_out (vty, afi, safi, write,
- " no neighbor %s send-community%s",
- addr, VTYNL);
+ " no neighbor %s send-community\n",
+ addr);
}
}
}
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_SOFT_RECONFIG))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s soft-reconfiguration inbound%s",
- addr, VTYNL);
+ " neighbor %s soft-reconfiguration inbound\n",
+ addr);
}
/* maximum-prefix. */
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_RSERVER_CLIENT))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s route-server-client%s",
- addr, VTYNL);
+ " neighbor %s route-server-client\n",
+ addr);
}
/* Nexthop-local unchanged. */
if (peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_NEXTHOP_LOCAL_UNCHANGED))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s nexthop-local unchanged%s",
- addr, VTYNL);
+ " neighbor %s nexthop-local unchanged\n",
+ addr);
}
/* allowas-in <1-10> */
if (peer->allowas_in[afi][safi] == 3)
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s allowas-in%s",
- addr, VTYNL);
+ " neighbor %s allowas-in\n",
+ addr);
}
else
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s allowas-in %d%s",
- addr, peer->allowas_in[afi][safi], VTYNL);
+ " neighbor %s allowas-in %d\n",
+ addr, peer->allowas_in[afi][safi]);
}
}
}
|| ! peer_af_flag_check (g_peer, afi, safi, PEER_FLAG_ALLOWAS_IN_ORIGIN))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s allowas-in origin%s",
- addr, VTYNL);
+ " neighbor %s allowas-in origin\n",
+ addr);
}
}
if (peer->weight[afi][safi])
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s weight %lu%s",
- addr, peer->weight[afi][safi], VTYNL);
+ " neighbor %s weight %lu\n",
+ addr, peer->weight[afi][safi]);
}
}
&& peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_MED_UNCHANGED))
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s attribute-unchanged%s",
- addr, VTYNL);
+ " neighbor %s attribute-unchanged\n",
+ addr);
}
else
{
afi_header_vty_out (vty, afi, safi, write,
- " neighbor %s attribute-unchanged%s%s%s%s", addr,
+ " neighbor %s attribute-unchanged%s%s%s\n", addr,
peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_AS_PATH_UNCHANGED) ?
" as-path" : "",
peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_NEXTHOP_UNCHANGED) ?
" next-hop" : "",
peergroup_af_flag_check (peer, afi, safi, PEER_FLAG_MED_UNCHANGED) ?
- " med" : "", VTYNL);
+ " med" : "");
}
}
}
fp (out, "%-24s ", "Responses: (Prefixes)");
fp (out, "%-8s %-8u ", "Active:", bgp->rfapi->rib_prefix_count_total);
fp (out, "%-8s %-8u", "Maximum:", bgp->rfapi->rib_prefix_count_total_max);
- fp (out, "%s", VTYNL);
+ fp (out, "\n");
fp (out, "%-24s ", " (Updated)");
fp (out, "%-8s %-8u ", "Update:",
fp (out, "%-8s %-8u", "Total:",
bgp->rfapi->stat.count_updated_response_updates +
bgp->rfapi->stat.count_updated_response_deletes);
- fp (out, "%s", VTYNL);
+ fp (out, "\n");
fp (out, "%-24s ", " (NVEs)");
for (ALL_LIST_ELEMENTS_RO (&bgp->rfapi->descriptors, node, rfd))
}
fp (out, "%-8s %-8u ", "Active:", nves_with_nonempty_ribs);
fp (out, "%-8s %-8u", "Total:", nves);
- fp (out, "%s", VTYNL);
+ fp (out, "\n");
}
prefix_rd2str(&ri->rk.rd, str_rd+1, BUFSIZ-1);
#endif
- fp (out, " %c %-20s %-15s %-15s %-4u %-8s %-8s%s%s",
+ fp (out, " %c %-20s %-15s %-15s %-4u %-8s %-8s%s\n",
deleted ? 'r' : ' ',
*printedprefix ? "" : str_pfx,
- str_vn, str_un, ri->cost, str_lifetime, str_age, str_rd, VTYNL);
+ str_vn, str_un, ri->cost, str_lifetime, str_age, str_rd);
if (!*printedprefix)
*printedprefix = 1;
{
++printedheader;
- fp (out, "%s[%s]%s",
+ fp (out, "%s[%s]\n",
VTYNL,
- show_removed ? "Removed" : "Active", VTYNL);
- fp (out, "%-15s %-15s%s", "Querying VN", "Querying UN",
- VTYNL);
+ show_removed ? "Removed" : "Active");
+ fp (out, "%-15s %-15s\n", "Querying VN", "Querying UN");
fp (out, " %-20s %-15s %-15s %4s %-8s %-8s%s",
"Prefix", "Registered VN", "Registered UN", "Cost",
"Lifetime",
++printednve;
++nves_displayed;
- fp (out, "%-15s %-15s%s",
+ fp (out, "%-15s %-15s\n",
rfapiRfapiIpAddr2Str (&rfd->vn_addr, str_vn, BUFSIZ),
- rfapiRfapiIpAddr2Str (&rfd->un_addr, str_un, BUFSIZ),
- VTYNL);
+ rfapiRfapiIpAddr2Str (&rfd->un_addr, str_un, BUFSIZ));
}
prefix2str (&rn->p, str_pfx, BUFSIZ);
- //fp(out, " %s%s", buf, VTYNL); /* prefix */
+ //fp(out, " %s\n", buf); /* prefix */
routes_displayed++;
nhs_displayed += print_rib_sl (fp, vty, out, sl,
if (routes_total)
{
- fp (out, "%s", VTYNL);
+ fp (out, "\n");
fp (out, "Displayed %u NVEs, and %u out of %u %s prefixes",
nves_displayed, routes_displayed,
routes_total, show_removed ? "removed" : "active");
if (nhs_displayed != routes_displayed || nhs_total != routes_total)
fp (out, " with %u out of %u next hops", nhs_displayed, nhs_total);
- fp (out, "%s", VTYNL);
+ fp (out, "\n");
}
}