mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 16:20:08 +00:00
bgpd: fix whitespace
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
f94d4e70f6
commit
44b8cd53c5
@ -701,15 +701,15 @@ bgp_show_dampening_parameters (struct vty *vty, afi_t afi, safi_t safi)
|
||||
if (CHECK_FLAG (bgp->af_flags[afi][safi], BGP_CONFIG_DAMPENING))
|
||||
{
|
||||
vty_out (vty, "Half-life time: %lld min%s",
|
||||
(long long )damp->half_life / 60, VTY_NEWLINE);
|
||||
(long long)damp->half_life / 60, VTY_NEWLINE);
|
||||
vty_out (vty, "Reuse penalty: %d%s",
|
||||
damp->reuse_limit, VTY_NEWLINE);
|
||||
damp->reuse_limit, VTY_NEWLINE);
|
||||
vty_out (vty, "Suppress penalty: %d%s",
|
||||
damp->suppress_value, VTY_NEWLINE);
|
||||
damp->suppress_value, VTY_NEWLINE);
|
||||
vty_out (vty, "Max suppress time: %lld min%s",
|
||||
(long long)damp->max_suppress_time / 60, VTY_NEWLINE);
|
||||
(long long)damp->max_suppress_time / 60, VTY_NEWLINE);
|
||||
vty_out (vty, "Max supress penalty: %u%s",
|
||||
damp->ceiling, VTY_NEWLINE);
|
||||
damp->ceiling, VTY_NEWLINE);
|
||||
vty_out (vty, "%s", VTY_NEWLINE);
|
||||
}
|
||||
else
|
||||
|
@ -7408,7 +7408,7 @@ bgp_show_peer (struct vty *vty, struct peer *p, u_char use_json, json_object *js
|
||||
/* BGP Version. */
|
||||
json_object_int_add(json_neigh, "bgpVersion", 4);
|
||||
json_object_string_add(json_neigh, "remoteRouterId",
|
||||
inet_ntop (AF_INET, &p->remote_id, buf1, sizeof(buf1)));
|
||||
inet_ntop (AF_INET, &p->remote_id, buf1, sizeof(buf1)));
|
||||
|
||||
/* Confederation */
|
||||
if (CHECK_FLAG (bgp->config, BGP_CONFIG_CONFEDERATION) && bgp_confederation_peers_check (bgp, p->as))
|
||||
@ -7476,7 +7476,7 @@ bgp_show_peer (struct vty *vty, struct peer *p, u_char use_json, json_object *js
|
||||
/* BGP Version. */
|
||||
vty_out (vty, " BGP version 4");
|
||||
vty_out (vty, ", remote router ID %s%s",
|
||||
inet_ntop (AF_INET, &p->remote_id, buf1, sizeof(buf1)),
|
||||
inet_ntop (AF_INET, &p->remote_id, buf1, sizeof(buf1)),
|
||||
VTY_NEWLINE);
|
||||
|
||||
/* Confederation */
|
||||
@ -8279,11 +8279,11 @@ bgp_show_peer (struct vty *vty, struct peer *p, u_char use_json, json_object *js
|
||||
if (use_json)
|
||||
{
|
||||
json_object_string_add(json_neigh, "nexthop",
|
||||
inet_ntop (AF_INET, &p->nexthop.v4, buf1, sizeof(buf1)));
|
||||
inet_ntop (AF_INET, &p->nexthop.v4, buf1, sizeof(buf1)));
|
||||
json_object_string_add(json_neigh, "nexthopGlobal",
|
||||
inet_ntop (AF_INET6, &p->nexthop.v6_global, buf1, sizeof(buf1)));
|
||||
inet_ntop (AF_INET6, &p->nexthop.v6_global, buf1, sizeof(buf1)));
|
||||
json_object_string_add(json_neigh, "nexthopLocal",
|
||||
inet_ntop (AF_INET6, &p->nexthop.v6_local, buf1, sizeof(buf1)));
|
||||
inet_ntop (AF_INET6, &p->nexthop.v6_local, buf1, sizeof(buf1)));
|
||||
if (p->shared_network)
|
||||
json_object_string_add(json_neigh, "bgpConnection", "sharedNetwork");
|
||||
else
|
||||
@ -8292,17 +8292,17 @@ bgp_show_peer (struct vty *vty, struct peer *p, u_char use_json, json_object *js
|
||||
else
|
||||
{
|
||||
vty_out (vty, "Nexthop: %s%s",
|
||||
inet_ntop (AF_INET, &p->nexthop.v4, buf1, sizeof(buf1)),
|
||||
VTY_NEWLINE);
|
||||
inet_ntop (AF_INET, &p->nexthop.v4, buf1, sizeof(buf1)),
|
||||
VTY_NEWLINE);
|
||||
vty_out (vty, "Nexthop global: %s%s",
|
||||
inet_ntop (AF_INET6, &p->nexthop.v6_global, buf1, sizeof(buf1)),
|
||||
VTY_NEWLINE);
|
||||
inet_ntop (AF_INET6, &p->nexthop.v6_global, buf1, sizeof(buf1)),
|
||||
VTY_NEWLINE);
|
||||
vty_out (vty, "Nexthop local: %s%s",
|
||||
inet_ntop (AF_INET6, &p->nexthop.v6_local, buf1, sizeof(buf1)),
|
||||
VTY_NEWLINE);
|
||||
inet_ntop (AF_INET6, &p->nexthop.v6_local, buf1, sizeof(buf1)),
|
||||
VTY_NEWLINE);
|
||||
vty_out (vty, "BGP connection: %s%s",
|
||||
p->shared_network ? "shared network" : "non shared network",
|
||||
VTY_NEWLINE);
|
||||
p->shared_network ? "shared network" : "non shared network",
|
||||
VTY_NEWLINE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user