summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-03-10 09:33:57 -0500
committermergify-bot <noreply@mergify.com>2022-03-11 14:52:26 +0000
commit7b7fb7f22230bbfdc651937dbf613e955f9696c6 (patch)
tree9ecc764da34e3a391dc2bd2c53be2bd37347e917
parentab32dd7ec63c87bc08a9fec688638c38d3267748 (diff)
bgpd: Do not fail when going from GR mode to GR
If you enter: router bgp 325 bgp graceful-restart bgp graceful-restart ! The second command entered will fail. This is not something that should be failing as that it's a no-op. Signed-off-by: Donald Sharp <sharpd@nvidia.com> (cherry picked from commit 624037727072a9087c936cb7f221bc53c22932f2)
-rw-r--r--bgpd/bgpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 43046f7f18..7e528b2191 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -1223,7 +1223,7 @@ int bgp_global_gr_init(struct bgp *bgp)
{
/*Event -> */
/*GLOBAL_GR_cmd*/ /*no_Global_GR_cmd*/
- GLOBAL_INVALID, GLOBAL_HELPER,
+ GLOBAL_GR, GLOBAL_HELPER,
/*GLOBAL_DISABLE_cmd*/ /*no_Global_Disable_cmd*/
GLOBAL_DISABLE, GLOBAL_INVALID
},