]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Remove dead code from recent commit 16915/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 25 Sep 2024 13:30:37 +0000 (09:30 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 25 Sep 2024 13:30:37 +0000 (09:30 -0400)
Recent commit 4d0e7a49cf8d4311a485281fa50bbff6ee8ca6cc
brought in changes that moved a check for ret up
in the code, caused some code to be left around
and be effectively dead since it would never be called.

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

index cf74a6566c614e5c81b78f70cd5e7d6be6a5bc4e..e7be2a33d2b60baaa7c20eb167650b9e87294756 100644 (file)
@@ -10609,13 +10609,6 @@ DEFPY(bgp_imexport_vrf, bgp_imexport_vrf_cmd,
                         */
                        SET_FLAG(vrf_bgp->vrf_flags, BGP_VRF_AUTO);
                }
-
-               if (ret) {
-                       vty_out(vty,
-                               "VRF %s is not configured as a bgp instance\n",
-                               import_name);
-                       return CMD_WARNING;
-               }
        }
 
        if (remove) {