From 895b0d0ad6e39ad54e82e5c3d9060aa390c8bdd8 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Thu, 6 May 2021 21:33:14 +0300 Subject: [PATCH] bgpd: don't return error for GR no-op commands Signed-off-by: Igor Ryzhov --- bgpd/bgp_vty.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 0347f49cb..400bda011 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -131,10 +131,6 @@ DEFINE_HOOK(bgp_inst_config_write, (bgp, vty)); DEFINE_HOOK(bgp_snmp_update_last_changed, (struct bgp *bgp), (bgp)); -#define GR_NO_OPER \ - "The Graceful Restart No Operation was executed as cmd same as previous one." -#define GR_INVALID \ - "The Graceful Restart command used is not valid at this moment." static struct peer_group *listen_range_exists(struct bgp *bgp, struct prefix *range, int exact); @@ -749,9 +745,6 @@ int bgp_nb_errmsg_return(char *errmsg, size_t errmsg_len, int ret) case BGP_ERR_GR_OPERATION_FAILED: str = "The Graceful Restart Operation failed due to an err."; break; - case BGP_GR_NO_OPERATION: - str = GR_NO_OPER; - break; case BGP_ERR_PEER_GROUP_MEMBER: str = "Peer-group member cannot override remote-as of peer-group"; break;