]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: don't return error for GR no-op commands 8642/head
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 6 May 2021 18:33:14 +0000 (21:33 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 6 May 2021 18:33:14 +0000 (21:33 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_vty.c

index 0347f49cb8295e5e3fa27a5c5b4067c2375d5b66..400bda011a57247d46a6eaa3a93dd11d47c04d7f 100644 (file)
@@ -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;