mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 17:40:04 +00:00
Merge pull request #6435 from idryzhov/fix-no-vrf
vtysh: return success from "no vrf" when VRF doesn't exist
This commit is contained in:
commit
807b454043
@ -757,10 +757,8 @@ DEFUN (no_vrf,
|
||||
|
||||
vrfp = vrf_lookup_by_name(vrfname);
|
||||
|
||||
if (vrfp == NULL) {
|
||||
vty_out(vty, "%% VRF %s does not exist\n", vrfname);
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
if (vrfp == NULL)
|
||||
return CMD_SUCCESS;
|
||||
|
||||
if (CHECK_FLAG(vrfp->status, VRF_ACTIVE)) {
|
||||
vty_out(vty, "%% Only inactive VRFs can be deleted\n");
|
||||
|
Loading…
Reference in New Issue
Block a user