]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Inconsistency in Local BGP GR state. 9015/head
authorprerana <prerana@vmware.com>
Fri, 9 Jul 2021 07:20:15 +0000 (00:20 -0700)
committerprerana <prerana@vmware.com>
Fri, 9 Jul 2021 07:20:15 +0000 (00:20 -0700)
commit3f98a750c29bfce5e5d7ffa36fe5c0b1554d7b7a
tree9ce28e2d61adab551bbd6f7e1c284e14a44ddc14
parent3f8fcd2caa4fadeca9ecb8b432d28341d418cd2a
bgpd: Inconsistency in Local BGP GR state.

Problem: Sometimes the configured Local GR state is not reflected in
show command and peer node. This is causing failures in few of the
BGP-GR topotests.

RCA: This problem is seen when the configuration of local GR state
happens when the BGP session is in OpenSent state and  moves to
Established after the configuration is complete.
When the session gets established, we move the GR state value from stub peer
to the config peer. This will result in overriding the GR state to
previous value.

Fix: The local GR state is modified only through CLI configuration and
does not change during BGP FSM transition. In this case it is not necessary
to transfer the GR state value from stub peer to config peer. This way we
can ensure that always the most recent config value is present in peer
datastructure.

Signed-off-by: Prerana-GB <prerana@vmware.com>
bgpd/bgp_fsm.c