BGP: Fix bug in show protocol related to LLGR
When channel is not active due to not be negotiated during sessino establishment, the LLGR timer is not allocated, so we should not show it.
This commit is contained in:
parent
d4cebc6bbe
commit
0db7a1d69c
1 changed files with 1 additions and 1 deletions
|
@ -2255,7 +2255,7 @@ bgp_show_proto_info(struct proto *P)
|
||||||
if (p->gr_active_num)
|
if (p->gr_active_num)
|
||||||
cli_msg(-1006, " Neighbor GR: %s", bgp_gr_states[c->gr_active]);
|
cli_msg(-1006, " Neighbor GR: %s", bgp_gr_states[c->gr_active]);
|
||||||
|
|
||||||
if (tm_active(c->stale_timer))
|
if (c->stale_timer && tm_active(c->stale_timer))
|
||||||
cli_msg(-1006, " LL stale timer: %t/-", tm_remains(c->stale_timer));
|
cli_msg(-1006, " LL stale timer: %t/-", tm_remains(c->stale_timer));
|
||||||
|
|
||||||
if (c->c.channel_state == CS_UP)
|
if (c->c.channel_state == CS_UP)
|
||||||
|
|
Loading…
Reference in a new issue