bgpd: Remove dead code from recent commit

Recent commit 4d0e7a49cf
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>
This commit is contained in:
Donald Sharp 2024-09-25 09:30:37 -04:00
parent 2203dc4777
commit 40c94ca369

View File

@ -10609,13 +10609,6 @@ DEFPY(bgp_imexport_vrf, bgp_imexport_vrf_cmd,
*/ */
SET_FLAG(vrf_bgp->vrf_flags, BGP_VRF_AUTO); 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) { if (remove) {