]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Attempting to activate unicast and labeled-unicast
authorDonald Sharp <sharpd@nvidia.com>
Wed, 17 Mar 2021 02:21:05 +0000 (22:21 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 17 Mar 2021 02:38:13 +0000 (22:38 -0400)
Should return an actual useful error message.
Commit: 055679e915fc826fe13abdd8d60a22a0ca35c8c6 messed this error message
up.

Fixes: #8246
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_vty.c

index a4e56c95c8fc7150bf9533e936f61b8da75b9007..46a017f9148db2ab25efbd12ad94fa9e34b7d3c0 100644 (file)
@@ -739,7 +739,7 @@ int bgp_nb_errmsg_return(char *errmsg, size_t errmsg_len, int ret)
                str = "Operation not allowed on a directly connected neighbor";
                break;
        case BGP_ERR_PEER_SAFI_CONFLICT:
-               str = GR_INVALID;
+               str = "Cannot activate peer for both 'ipv4 unicast' and 'ipv4 labeled-unicast'";
                break;
        case BGP_ERR_GR_INVALID_CMD:
                str = "The Graceful Restart command used is not valid at this moment.";
@@ -831,7 +831,7 @@ int bgp_vty_return(struct vty *vty, int ret)
                str = "Operation not allowed on a directly connected neighbor";
                break;
        case BGP_ERR_PEER_SAFI_CONFLICT:
-               str = GR_INVALID;
+               str = "Cannot activate peer for both 'ipv4 unicast' and 'ipv4 labeled-unicast'";
                break;
        case BGP_ERR_GR_INVALID_CMD:
                str = "The Graceful Restart command used is not valid at this moment.";