BGP: Do not show statistics
BGP statistics code was preliminary and i wanted to replace it by separate 'show X stats' command. The patch hides the preliminary output in 'show protocols all' so it is not part of the released version.
This commit is contained in:
parent
454ae30445
commit
5a6e8380f8
1 changed files with 2 additions and 0 deletions
|
@ -2477,6 +2477,7 @@ bgp_show_proto_info(struct proto *P)
|
||||||
tm_remains(p->conn->keepalive_timer), p->conn->keepalive_time);
|
tm_remains(p->conn->keepalive_timer), p->conn->keepalive_time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
struct bgp_stats *s = &p->stats;
|
struct bgp_stats *s = &p->stats;
|
||||||
cli_msg(-1006, " FSM established transitions: %u",
|
cli_msg(-1006, " FSM established transitions: %u",
|
||||||
s->fsm_established_transitions);
|
s->fsm_established_transitions);
|
||||||
|
@ -2486,6 +2487,7 @@ bgp_show_proto_info(struct proto *P)
|
||||||
s->tx_messages, s->tx_updates, s->tx_bytes);
|
s->tx_messages, s->tx_updates, s->tx_bytes);
|
||||||
cli_msg(-1006, " Last rcvd update elapsed time: %t s",
|
cli_msg(-1006, " Last rcvd update elapsed time: %t s",
|
||||||
p->last_rx_update ? (current_time() - p->last_rx_update) : 0);
|
p->last_rx_update ? (current_time() - p->last_rx_update) : 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((p->last_error_class != BE_NONE) &&
|
if ((p->last_error_class != BE_NONE) &&
|
||||||
(p->last_error_class != BE_MAN_DOWN))
|
(p->last_error_class != BE_MAN_DOWN))
|
||||||
|
|
Loading…
Reference in a new issue