Skip to content

Commit

Permalink
bgpd: Remove dead code from recent commit
Browse files Browse the repository at this point in the history
Recent commit 4d0e7a4
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 <[email protected]>
  • Loading branch information
donaldsharp committed Sep 25, 2024
1 parent 2203dc4 commit 40c94ca
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bgpd/bgp_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 40c94ca

Please sign in to comment.