mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 21:23:06 +00:00
lib: fix "no vrf" command
Remove operational data check from CLI command. It never works in mgmtd and it is not needed in backend daemons because it's done in `lib_vrf_destroy` callback. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
9d8fd14b56
commit
75662912e3
12
lib/vrf.c
12
lib/vrf.c
@ -681,18 +681,6 @@ DEFUN_YANG (no_vrf,
|
|||||||
const char *vrfname = argv[2]->arg;
|
const char *vrfname = argv[2]->arg;
|
||||||
char xpath_list[XPATH_MAXLEN];
|
char xpath_list[XPATH_MAXLEN];
|
||||||
|
|
||||||
struct vrf *vrfp;
|
|
||||||
|
|
||||||
vrfp = vrf_lookup_by_name(vrfname);
|
|
||||||
|
|
||||||
if (vrfp == NULL)
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
|
|
||||||
if (CHECK_FLAG(vrfp->status, VRF_ACTIVE)) {
|
|
||||||
vty_out(vty, "%% Only inactive VRFs can be deleted\n");
|
|
||||||
return CMD_WARNING_CONFIG_FAILED;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (vrf_get_backend() == VRF_BACKEND_VRF_LITE) {
|
if (vrf_get_backend() == VRF_BACKEND_VRF_LITE) {
|
||||||
/*
|
/*
|
||||||
* Remove the VRF interface config when removing the VRF.
|
* Remove the VRF interface config when removing the VRF.
|
||||||
|
Loading…
Reference in New Issue
Block a user