diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-02-02 00:18:30 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-02-02 01:22:50 +0200 |
| commit | 75662912e316c6130ce44ede457ba3db03d87e00 (patch) | |
| tree | 39fcae0f343775918e53e9143dc22b02c5ac0296 | |
| parent | 9d8fd14b56a7c0a35d761c323084083b957ecb86 (diff) | |
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>
| -rw-r--r-- | lib/vrf.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -681,18 +681,6 @@ DEFUN_YANG (no_vrf, const char *vrfname = argv[2]->arg; 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) { /* * Remove the VRF interface config when removing the VRF. |
